Core/GameObjects: Fixed GameObject::SetRespawnTime putting gameobjets not using compatibility spawning mode into invalid state
Closes #31047
This commit is contained in:
1 parent
efce3f3463
commit
f5f344ddad
2 files changed
+4
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user