Revert expireActionTime (#991)

* Revert expireActionTime

* Revert expireActionTime

* Revert RemoveExpired

* Revert RemoveExpired

* Revert RemoveExpired

* Revert Action expiration
This commit is contained in:
SaW
2025-02-21 04:32:00 +01:00
committed by GitHub
parent 61333a02bf
commit 419e96e5aa
6 changed files with 60 additions and 8 deletions

View File

@@ -239,13 +239,9 @@ bool Engine::DoNextAction(Unit* unit, uint32 depth, bool minimal)
}
if (!actionExecuted)
LogAction("No actions executed");
ActionNode* action = nullptr;
while ((action = queue.Pop()) != nullptr)
{
delete action;
}
LogAction("no actions executed");
queue.RemoveExpired();
return actionExecuted;
}