aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 01c9b2c5c..5e46018c3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1279,7 +1279,9 @@ int main(int argc, char *argv[])
menudata.selected_world = -1;
// If a world was commanded, append and select it
if(commanded_world != ""){
- std::string gameid = getWorldGameId(commanded_world);
+ std::string gameid = getWorldGameId(commanded_world, true);
+ if(gameid == "")
+ gameid = g_settings->get("default_game");
WorldSpec spec(commanded_world, "[commanded world]", gameid);
worldspecs.push_back(spec);
menudata.worlds.push_back(narrow_to_wide(spec.name)