Be more strict checking for space in program pool in mgmt actions.
This commit is contained in:
@@ -1003,6 +1003,10 @@ CommandCost CmdProgramSignalTraceRestrictProgMgmt(TileIndex tile, DoCommandFlag
|
||||
}
|
||||
}
|
||||
|
||||
if (type != TRDCT_PROG_RESET && !TraceRestrictProgram::CanAllocateItem()) {
|
||||
return CMD_ERROR;
|
||||
}
|
||||
|
||||
if (!(flags & DC_EXEC)) {
|
||||
return CommandCost();
|
||||
}
|
||||
|
Reference in New Issue
Block a user