diff options
author | Machiavelli <none@none> | 2009-06-18 17:21:25 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-06-18 17:21:25 +0200 |
commit | 3a309abfab3762d1c3bc2f90b961582e83d5971a (patch) | |
tree | b04ae4230e1d2b67f78e4ce74b0ed6038c62be6d /src/game/Level1.cpp | |
parent | 85e59ecd578159a049295071f456c52e9d124de6 (diff) |
* 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
Diffstat (limited to 'src/game/Level1.cpp')
-rw-r--r-- | src/game/Level1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |