mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Add some crash prevention checks.
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user