/* true if the instance state is still valid */ bool MapPersistentState::UnloadIfEmpty() { if (CanBeUnload()) { sMapPersistentStateMgr.RemovePersistentState(GetMapId(), GetInstanceId()); return false; } else return true; }
/* true if the instance state is still valid */ bool MapPersistentState::UnloadIfEmpty() { if (CanBeUnload()) { m_needRemove = true; return false; } else return true; }