diff options
author | frosch <frosch@openttd.org> | 2009-04-26 14:57:42 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-04-26 14:57:42 +0000 |
commit | 3301afa5c3b2fe2bf24ef7ab9333df8a88334fb9 (patch) | |
tree | b65b0ae1520c1eeebae25e2d3c5193ad8c6ee04a | |
parent | 53887e07bb8a6f815f48daffc3ac106496b2e694 (diff) | |
download | openttd-3301afa5c3b2fe2bf24ef7ab9333df8a88334fb9.tar.xz |
(svn r16161) -Fix (r16128): AILoadConfig() could not handle NULL settings.
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 2cce2d35c..cae88d189 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1133,7 +1133,7 @@ static void AILoadConfig(IniFile *ini, const char *grpname) continue; } } - config->StringToSettings(item->value); + if (item->value != NULL) config->StringToSettings(item->value); } } |