fixed build

This commit is contained in:
Ovahlord
2021-01-01 19:23:22 +01:00
parent 4aa098a50e
commit 360b1149dc
2 changed files with 3 additions and 3 deletions

View File

@@ -3127,11 +3127,11 @@ bool Map::CheckRespawn(RespawnInfo* info)
}
case SPAWN_TYPE_GAMEOBJECT:
// gameobject check is simpler - they cannot be dead or escorting
if (_gameobjectBySpawnIdStore.find(info->spawnId) != _gameobjectBySpawnIdStore.end())
if (_gameObjectBySpawnIdStore.find(info->spawnId) != _gameObjectBySpawnIdStore.end())
alreadyExists = true;
break;
default:
ABORT_MSG("Invalid spawn type %u with spawnId %u on map %u", uint32(info->type), info->spawnId, GetId());
ASSERT(false, "Invalid spawn type %u with spawnId %u on map %u", uint32(info->type), info->spawnId, GetId());
return true;
}
if (alreadyExists)

View File

@@ -859,6 +859,6 @@ void PoolMgr::UpdatePool(uint32 pool_id, SpawnObjectType type, uint32 spawnId)
UpdatePool<GameObject>(pool_id, spawnId);
break;
default:
ABORT_MSG("Invalid spawn type %u passed to PoolMgr::IsPartOfPool (with spawnId %u)", uint32(type), spawnId);
ASSERT(false, "Invalid spawn type %u passed to PoolMgr::IsPartOfPool (with spawnId %u)", uint32(type), spawnId);
}
}