diff options
author | Eugene Sandulenko | 2007-06-27 09:32:42 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-06-27 09:32:42 +0000 |
commit | 8c36fcf64ce05b10a094e7ec63c029fc52965b4c (patch) | |
tree | 80cce633c54b989dc87fb9e8feefe383ac7e43d7 | |
parent | 3d694b7c5bf689d1460edf496fb0b5e11a8ad494 (diff) | |
download | scummvm-rg350-8c36fcf64ce05b10a094e7ec63c029fc52965b4c.tar.gz scummvm-rg350-8c36fcf64ce05b10a094e7ec63c029fc52965b4c.tar.bz2 scummvm-rg350-8c36fcf64ce05b10a094e7ec63c029fc52965b4c.zip |
Path #1743892: "Fix for segmentation fault in theming code"
svn-id: r27743
-rw-r--r-- | gui/theme-config.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/theme-config.cpp b/gui/theme-config.cpp index 3bac51a8fe..8da2be99e1 100644 --- a/gui/theme-config.cpp +++ b/gui/theme-config.cpp @@ -617,16 +617,16 @@ void Theme::processResSection(Common::ConfigFile &config, const String &name, bo if (iterk->key == "use") { if (iterk->value == name) error("Theme section [%s]: cannot use itself", name.c_str()); - if (!config.hasSection(name)) - error("Undefined use of section [%s]", name.c_str()); + if (!config.hasSection(iterk->value)) + error("Undefined use of section [%s]", iterk->value.c_str()); processResSection(config, iterk->value, true); continue; } if (iterk->key == "useAsIs") { if (iterk->value == name) error("Theme section [%s]: cannot use itself", name.c_str()); - if (!config.hasSection(name)) - error("Undefined use of section [%s]", name.c_str()); + if (!config.hasSection(iterk->value)) + error("Undefined use of section [%s]", iterk->value.c_str()); processResSection(config, iterk->value); continue; } |