mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 16:39:09 +00:00
Fix #10212: [Script] Nested ScriptAccounting scopes are not restored properly.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user