diff options
| author | Spp <none@none> | 2010-09-21 10:11:25 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-09-21 10:11:25 +0200 |
| commit | 7a3fd2e9bfab54dca6b23de724617fef060269a8 (patch) | |
| tree | c3e3c9302bd4fa98d6eb7fb1d36bc682357b442e /src/server/game/Chat | |
| parent | 63aa6e44fb9c7ca1f2dd0dabfeeae8a974dadaee (diff) | |
Core/: Fix warnings
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Chat')
| -rw-r--r-- | src/server/game/Chat/Chat.cpp | 2 | ||||
| -rw-r--r-- | src/server/game/Chat/Commands/Level3.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp index 63c20aa8a06..fd855fc82e1 100644 --- a/src/server/game/Chat/Chat.cpp +++ b/src/server/game/Chat/Chat.cpp @@ -1689,7 +1689,7 @@ valid examples: bool foundName = false; for (uint8 dbIndex = LOCALE_koKR; dbIndex < MAX_LOCALE; ++dbIndex) { - if (dbIndex == -1 || il == NULL || uint8(dbIndex) >= il->Name.size()) + if (il == NULL || dbIndex >= il->Name.size()) // using strange database/client combinations can lead to this case expectedName = linkedItem->Name1; else diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp index 1e0c515635a..01f696f9b3b 100644 --- a/src/server/game/Chat/Commands/Level3.cpp +++ b/src/server/game/Chat/Commands/Level3.cpp @@ -6904,10 +6904,10 @@ bool ChatHandler::HandleInstanceUnbindCommand(const char *args) if (pDiff) diff = atoi(pDiff); uint16 counter = 0; - int16 MapId = 0; + uint16 MapId = 0; if (strcmp(pMap, "all")) - if (!(MapId = atoi(pMap))) + if (!(MapId = uint16(atoi(pMap)))) return false; for(uint8 i = 0; i < MAX_DIFFICULTY; ++i) |
