Core/Misc: Another batch of fixes for issues found by static analysis

This commit is contained in:
Spp committed 2013-05-30 13:18:29 +02:00
1 parent 782ea4309a
commit 9664c0ab5c
14 files changed
+130 -96

No files matched your search

+3 -2
View File
@@ -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] != '\\')
{