Tracerestrict: Return error instead of assert for unknown subcommands
This commit is contained in:
@@ -1632,8 +1632,7 @@ CommandCost CmdProgramSignalTraceRestrict(TileIndex tile, DoCommandFlag flags, u
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
NOT_REACHED();
|
return CMD_ERROR;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TraceRestrictProgramActionsUsedFlags actions_used_flags;
|
TraceRestrictProgramActionsUsedFlags actions_used_flags;
|
||||||
@@ -1794,8 +1793,7 @@ CommandCost CmdProgramSignalTraceRestrictProgMgmt(TileIndex tile, DoCommandFlag
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
NOT_REACHED();
|
return CMD_ERROR;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// update windows
|
// update windows
|
||||||
|
Reference in New Issue
Block a user