Corrected doors and buttons without autoclose time after recent changes

This commit is contained in:
roc13x committed 2017-04-19 18:30:32 +01:00
1 parent 70f5f9d998
commit e4bfd0aa05
1 file changed
+1 -1
@@ -1195,7 +1195,7 @@ void GameObject::UseDoorOrButton(uint32 time_to_restore, bool alternative /* = f
SwitchDoorOrButton(true, alternative);
SetLootState(GO_ACTIVATED, user);
m_cooldownTime = GameTime::GetGameTimeMS() + time_to_restore;
m_cooldownTime = time_to_restore ? (GameTime::GetGameTimeMS() + time_to_restore) : 0;
}
void GameObject::SetGoArtKit(uint8 kit)