Core/Phases: crashfix

This commit is contained in:
Rat
2015-03-16 19:27:32 +01:00
parent a68f19af56
commit e677cf7157

View File

@@ -482,6 +482,12 @@ namespace MMAP
const dtMeshTile* oldTile = navMesh->getTileByRef(loadedTileRefs[packedXY]);
if (!oldTile)
{
TC_LOG_DEBUG("phase", "MMapData::AddSwap: phased mmtile %03u[%02i, %02i] load skipped, due to not loaded base tile ref on map %u", swap, x, y, _mapId);
return;
}
uint32 old_x = oldTile->header->x;
uint32 old_y = oldTile->header->y;