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

@@ -1674,6 +1674,9 @@ void GameObject::SetRespawnTime(int32 respawn)
m_respawnDelayTime = respawn > 0 ? respawn : 0;
if (respawn && !m_spawnedByDefault)
UpdateObjectVisibility(true);
if (m_spawnedByDefault && !m_respawnCompatibilityMode && m_respawnTime > 0)
SetLootState(GO_JUST_DEACTIVATED);
}
void GameObject::Respawn()