diff options
author | rubidium <rubidium@openttd.org> | 2008-06-02 23:01:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-06-02 23:01:57 +0000 |
commit | def3177d3a4504424639501e92bf778fd809d0ba (patch) | |
tree | 0f52eea653cde7bd14c520d1b264a76573c10ead | |
parent | 7b66180d78eb29f20e4b73894a090d8adca17889 (diff) | |
download | openttd-def3177d3a4504424639501e92bf778fd809d0ba.tar.xz |
(svn r13365) -Fix: don't segfault on trying to set a non-existing patch setting.
-rw-r--r-- | src/settings.cpp | 1 |
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; |