mirror of https://github.com/OpenTTD/OpenTTD
(svn r13365) -Fix: don't segfault on trying to set a non-existing patch setting.
parent
7b66180d78
commit
def3177d3a
|
@ -2232,6 +2232,7 @@ void IConsoleSetPatchSetting(const char *name, const char *value)
|
|||
|
||||
if (sd == NULL) {
|
||||
IConsolePrintF(CC_WARNING, "'%s' is an unknown patch setting.", name);
|
||||
return;
|
||||
}
|
||||
|
||||
bool success;
|
||||
|
|
Loading…
Reference in New Issue