diff options
author | Spp <spp@jorge.gr> | 2013-05-30 13:14:06 +0200 |
---|---|---|
committer | Spp <spp@jorge.gr> | 2013-05-30 13:18:29 +0200 |
commit | 9664c0ab5cc7449f2e839fb60b6b87c9d56dfb92 (patch) | |
tree | 092af4d16233823423cc552c567acb3307380951 /src/server/collision/Maps/MapTree.cpp | |
parent | 782ea4309a4d392ba9933caace067d567703c84b (diff) |
Core/Misc: Another batch of fixes for issues found by static analysis
Diffstat (limited to 'src/server/collision/Maps/MapTree.cpp')
-rw-r--r-- | src/server/collision/Maps/MapTree.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/collision/Maps/MapTree.cpp b/src/server/collision/Maps/MapTree.cpp index ebe3afce810..dc12bb68e0d 100644 --- a/src/server/collision/Maps/MapTree.cpp +++ b/src/server/collision/Maps/MapTree.cpp @@ -119,8 +119,9 @@ namespace VMAP return intersectionCallBack.result; } - StaticMapTree::StaticMapTree(uint32 mapID, const std::string &basePath) - : iMapID(mapID), iIsTiled(false), iTreeValues(0), iBasePath(basePath) + StaticMapTree::StaticMapTree(uint32 mapID, const std::string &basePath) : + iMapID(mapID), iIsTiled(false), iTreeValues(NULL), + iNTreeValues(0), iBasePath(basePath) { if (iBasePath.length() > 0 && iBasePath[iBasePath.length()-1] != '/' && iBasePath[iBasePath.length()-1] != '\\') { |