aboutsummaryrefslogtreecommitdiff
path: root/base/game.cpp
diff options
context:
space:
mode:
authorMax Horn2007-01-28 10:29:22 +0000
committerMax Horn2007-01-28 10:29:22 +0000
commitd32b1b1b7a64448ab0a456a8b10008c269183c0e (patch)
tree71ff706108d3f10bb1eb7b5a29ad1213cb86b400 /base/game.cpp
parent93687d376b0682b1f24878cc071a7196f838ddaa (diff)
downloadscummvm-rg350-d32b1b1b7a64448ab0a456a8b10008c269183c0e.tar.gz
scummvm-rg350-d32b1b1b7a64448ab0a456a8b10008c269183c0e.tar.bz2
scummvm-rg350-d32b1b1b7a64448ab0a456a8b10008c269183c0e.zip
Always set gameid & description in a GameDescriptor (somewhat more future proof fix for the recent regression caused by the changes to gameid() / description() )
svn-id: r25242
Diffstat (limited to 'base/game.cpp')
-rw-r--r--base/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/game.cpp b/base/game.cpp
index cc0cb2c846..a20acaae95 100644
--- a/base/game.cpp
+++ b/base/game.cpp
@@ -68,7 +68,7 @@ GameDescriptor findGame(const Common::String &gameName, const Plugin **plugin) {
PluginList::const_iterator iter = plugins.begin();
for (iter = plugins.begin(); iter != plugins.end(); ++iter) {
result = (*iter)->findGame(gameName.c_str());
- if (result.contains("gameid") && !result["gameid"].empty()) {
+ if (!result.gameid().empty()) {
if (plugin)
*plugin = *iter;
break;