summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-06-02 23:01:57 +0000
committerrubidium <rubidium@openttd.org>2008-06-02 23:01:57 +0000
commitdef3177d3a4504424639501e92bf778fd809d0ba (patch)
tree0f52eea653cde7bd14c520d1b264a76573c10ead /src
parent7b66180d78eb29f20e4b73894a090d8adca17889 (diff)
downloadopenttd-def3177d3a4504424639501e92bf778fd809d0ba.tar.xz
(svn r13365) -Fix: don't segfault on trying to set a non-existing patch setting.
Diffstat (limited to 'src')
-rw-r--r--src/settings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index f0d981ddf..a38da7434 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -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;