diff options
| author | Spp <spp@jorge.gr> | 2012-11-27 13:02:04 +0100 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2012-11-27 13:03:12 +0100 |
| commit | e9544985608e551d3765dea525d63b30d2c03b17 (patch) | |
| tree | e4ffe11ce5d87171d623c3893a0275162f2307ab /src/server/game/Chat/Chat.cpp | |
| parent | 2251d1bfae88b8f7d18d4111929f4bb03f4a4131 (diff) | |
Core/Misc: Random changes here and there to minimize differences with 4.3.4 branch
Diffstat (limited to 'src/server/game/Chat/Chat.cpp')
| -rw-r--r-- | 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 c1ea96b0db1..6441bd1bcb6 100644 --- 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()); } |
