Core/GameObjects: Don't restock non-personal chests that didn't have loot modified

This commit is contained in:
Shauren
2023-08-30 19:23:56 +02:00
parent df4bd24f6d
commit 955343f747

View File

@@ -1286,7 +1286,7 @@ void GameObject::Update(uint32 diff)
m_loot->Update();
// Non-consumable chest was partially looted and restock time passed, restock all loot now
if (GetGOInfo()->chest.consumable == 0 && GetGOInfo()->chest.chestRestockTime && GameTime::GetGameTime() >= m_restockTime)
if (GetGOInfo()->chest.consumable == 0 && m_restockTime && GameTime::GetGameTime() >= m_restockTime)
{
m_restockTime = 0;
m_lootState = GO_READY;