mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Tracerestrict: Return error instead of assert for unknown subcommands
This commit is contained in:
parent
02dabad81e
commit
ccfcc22c03
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user