diff options
-rw-r--r-- | base/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/main.cpp b/base/main.cpp index 18a7614511..d108512416 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -169,9 +169,9 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const // Set the window caption to the game name Common::String caption(ConfMan.get("description")); - Common::String desc = EngineMan.findGame(ConfMan.get("gameid")).description(); - if (caption.empty() && !desc.empty()) - caption = desc; + if (caption.empty()) { + caption = EngineMan.findGame(ConfMan.get("gameid")).description(); + } if (caption.empty()) caption = ConfMan.getActiveDomainName(); // Use the domain (=target) name if (!caption.empty()) { |