From 20a30825a0c80e57a069fca5524365f72d85f6b0 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sat, 20 Nov 2021 23:27:45 +0100 Subject: Fix: Insufficient input validation for CmdIndustryCtrl. (#9711) --- src/industry_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 8be44488d..b03a722b7 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2118,7 +2118,7 @@ CommandCost CmdIndustryCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint } default: - NOT_REACHED(); + return CMD_ERROR; } return CommandCost(); -- cgit v1.2.3-70-g09d2