From 3a309abfab3762d1c3bc2f90b961582e83d5971a Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Thu, 18 Jun 2009 17:21:25 +0200 Subject: * In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases). * Other minor cleanups, Null pointer checks etc. --HG-- branch : trunk --- src/game/Level1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Level1.cpp') diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp index 1451e66b04a..43e7fb74660 100644 --- a/src/game/Level1.cpp +++ b/src/game/Level1.cpp @@ -1074,7 +1074,7 @@ bool ChatHandler::HandleModifyKnownTitlesCommand(const char* args) uint64 titles2 = titles; - for(int i = 1; i < sCharTitlesStore.GetNumRows(); ++i) + for(uint32 i = 1; i < sCharTitlesStore.GetNumRows(); ++i) if(CharTitlesEntry const* tEntry = sCharTitlesStore.LookupEntry(i)) titles2 &= ~(uint64(1) << tEntry->bit_index); -- cgit v1.2.3