Core/GameObjects: fixed instant reset of gameobjects after activation

This commit is contained in:
joschiwald committed 2014-05-17 20:05:43 +02:00
1 parent 488e4ef8e1
commit 1dbc943297
1 file changed
+1 -1
@@ -1100,7 +1100,7 @@ void GameObject::UseDoorOrButton(uint32 time_to_restore, bool alternative /* = f
SwitchDoorOrButton(true, alternative);
SetLootState(GO_ACTIVATED, user);
m_cooldownTime = time(NULL) + time_to_restore;
m_cooldownTime = time_to_restore ? (time(NULL) + time_to_restore) : 0;
}
void GameObject::SetGoArtKit(uint8 kit)