*Add some crash prevention checks.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-08-03 12:52:31 +02:00
1 parent 71adccb1c7
commit 8777efd03c
10 files changed
+176 -172

No files matched your search

+5 -1
View File
@@ -117,10 +117,14 @@ MapManager::_createBaseMap(uint32 id)
{
m = new MapInstanced(id, i_gridCleanUpDelay);
}
else
else if (entry)
{
m = new Map(id, i_gridCleanUpDelay, 0, 0);
}
else
{
assert(false);
}
i_maps[id] = m;
}