Skip to content

Commit

Permalink
Hotfix GOB respawn
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife authored and cyberium committed Apr 22, 2017
1 parent 623a244 commit d34bd4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/GameObject.cpp
Expand Up @@ -526,6 +526,8 @@ void GameObject::Update(uint32 update_diff, uint32 p_time)
if (GameObjectData const* data = sObjectMgr.GetGOData(GetObjectGuid().GetCounter()))
m_respawnDelayTime = data->GetRandomRespawnTime();

m_respawnTime = m_spawnedByDefault ? time(nullptr) + m_respawnDelayTime : 0;

// if option not set then object will be saved at grid unload
if (sWorld.getConfig(CONFIG_BOOL_SAVE_RESPAWN_TIME_IMMEDIATELY))
SaveRespawnTime();
Expand Down

0 comments on commit d34bd4f

Please sign in to comment.