summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-20 23:27:45 +0100
committerGitHub <noreply@github.com>2021-11-20 23:27:45 +0100
commit20a30825a0c80e57a069fca5524365f72d85f6b0 (patch)
treecdcae65e13a4ee0b5ad1cf5464b2ee9187329145
parent793de48e890a0d45693881b48e8abe9ffef35f60 (diff)
downloadopenttd-20a30825a0c80e57a069fca5524365f72d85f6b0.tar.xz
Fix: Insufficient input validation for CmdIndustryCtrl. (#9711)
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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();