Tracerestrict: Return error instead of assert for unknown subcommands

This commit is contained in:
Jonathan G Rennison 2022-06-11 20:24:05 +01:00
parent 02dabad81e
commit ccfcc22c03

View File

@ -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