aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-02-15 16:57:14 -0500
committerClyne Sullivan <tullivan99@gmail.com>2017-02-15 16:57:14 -0500
commitbd80053588a9a38c9f7a1f132d36fb0844b91af4 (patch)
treea5d0710ed06d486ff6459b809e5f22025067cab0 /src
parent4a5d0a99f7c83c9f254cbfb8f41828831f8251db (diff)
reset flag redo
Diffstat (limited to 'src')
-rw-r--r--src/world.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 6c58515..f4be288 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -191,7 +191,8 @@ void WorldSystem::load(const std::string& file)
return;
// save the current world's data
- save();
+ if (!currentXMLFile.empty())
+ save();
// load file data to string
auto xmlPath = xmlFolder + file;