From bd80053588a9a38c9f7a1f132d36fb0844b91af4 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 15 Feb 2017 16:57:14 -0500 Subject: reset flag redo --- src/world.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/world.cpp') 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; -- cgit v1.2.3