Core/GameObjects: Fixed GameObject::SetRespawnTime putting gameobjets not using compatibility spawning mode into invalid state

Closes #31047
This commit is contained in:
Shauren authored and Ovahlord committed 2025-06-17 22:15:52 +02:00
1 parent efce3f3463
commit f5f344ddad
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -1941,7 +1941,7 @@ bool Map::AddRespawnInfo(RespawnInfo const& info)
if (it != bySpawnIdMap.end()) // spawnid already has a respawn scheduled
{
RespawnInfo* const existing = it->second;
if (info.respawnTime <= existing->respawnTime) // delete existing in this case
if (info.respawnTime < existing->respawnTime) // delete existing in this case
DeleteRespawnInfo(existing);
else
return false;