Core/Map: Kill zoneId from RespawnInfo, all it did was significantly slow down startup to make one gm command faster

This commit is contained in:
Shauren authored and Ovahlord committed 2019-08-18 11:51:09 +02:00
1 parent 16b459b7cd
commit 0b8ab68eb3
6 files changed
+56 -32

No files matched your search

@@ -1078,7 +1078,7 @@ void GameObject::SaveRespawnTime(uint32 forceDelay, bool savetodb)
}
uint32 thisRespawnTime = forceDelay ? time(nullptr) + forceDelay : m_respawnTime;
GetMap()->SaveRespawnTime(SPAWN_TYPE_GAMEOBJECT, m_spawnId, GetEntry(), thisRespawnTime, GetZoneId(), Trinity::ComputeGridCoord(GetPositionX(), GetPositionY()).GetId(), m_goData->dbData ? savetodb : false);
GetMap()->SaveRespawnTime(SPAWN_TYPE_GAMEOBJECT, m_spawnId, GetEntry(), thisRespawnTime, Trinity::ComputeGridCoord(GetPositionX(), GetPositionY()).GetId(), m_goData->dbData ? savetodb : false);
}
}