From 99ac3fb701d095d03161ef1d66d7760a9c524b6b Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 18 Oct 2010 19:11:58 +0200 Subject: [PATCH] Changed: #825 Remove all warning when compiling Ryzom --- code/nel/include/nel/misc/eid_translator.h | 2 +- code/nel/src/misc/eid_translator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/include/nel/misc/eid_translator.h b/code/nel/include/nel/misc/eid_translator.h index 82d239511..26b296ea1 100644 --- a/code/nel/include/nel/misc/eid_translator.h +++ b/code/nel/include/nel/misc/eid_translator.h @@ -41,7 +41,7 @@ public: : EntityNameStringId(0), EntitySlot(-1), ShardId(0), - UId(~0), + UId(std::numeric_limits::max()), Online(false) { } diff --git a/code/nel/src/misc/eid_translator.cpp b/code/nel/src/misc/eid_translator.cpp index 3d1a81bf1..36ea84247 100644 --- a/code/nel/src/misc/eid_translator.cpp +++ b/code/nel/src/misc/eid_translator.cpp @@ -574,7 +574,7 @@ void CEntityIdTranslator::getEntityIdInfo (const CEntityId &eid, ucstring &entit nlwarning ("EIT: %s is not registered in CEntityIdTranslator", reid.toString().c_str()); entityName = ""; entitySlot = -1; - uid = ~0; + uid = std::numeric_limits::max(); userName = ""; online = false; }