diff options
| author | Spp <spp@jorge.gr> | 2012-11-16 09:51:44 +0100 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2012-11-16 09:51:44 +0100 |
| commit | 279b7f4c1029b239000a7db746c361abc639e798 (patch) | |
| tree | 937c0c6235ba5833f44c2d818758d5f09233865b /src/server/game/Chat/Chat.cpp | |
| parent | 306d4d3ab198fc86fce1ed6cd3c97c580a5fb47a (diff) | |
Core/Misc: Minor changes here and there
Diffstat (limited to 'src/server/game/Chat/Chat.cpp')
| -rwxr-xr-x | src/server/game/Chat/Chat.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp index b120cd5e978..4571f261587 100755 --- a/src/server/game/Chat/Chat.cpp +++ b/src/server/game/Chat/Chat.cpp @@ -63,7 +63,7 @@ ChatCommand* ChatHandler::getCommandTable() // cache for commands, needed because some commands are loaded dynamically through ScriptMgr // cache is never freed and will show as a memory leak in diagnostic tools // can't use vector as vector storage is implementation-dependent, eg, there can be alignment gaps between elements - static ChatCommand* commandTableCache = 0; + static ChatCommand* commandTableCache = NULL; if (LoadCommandTable()) { @@ -96,7 +96,6 @@ ChatCommand* ChatHandler::getCommandTable() std::string name = fields[0].GetString(); SetDataForCommandInTable(commandTableCache, name.c_str(), fields[1].GetUInt8(), fields[2].GetString(), name); - } while (result->NextRow()); } |
