Fix #10212: [Script] Nested ScriptAccounting scopes are not restored properly.

pull/461/head
Michael Lutz 1 year ago
parent 1131608eb4
commit 1c205b2cda

@ -103,7 +103,7 @@ ScriptObject::ActiveInstance::~ActiveInstance()
/* static */ void ScriptObject::SetDoCommandCosts(Money value)
{
GetStorage()->costs = CommandCost(value);
GetStorage()->costs = CommandCost(INVALID_EXPENSES, value); // Expense type is never read.
}
/* static */ void ScriptObject::IncreaseDoCommandCosts(Money value)

Loading…
Cancel
Save