From f1bc1eeb4ab31b20829921e4074f0f54c8c66d1d Mon Sep 17 00:00:00 2001 From: Arvid Norlander Date: Sat, 27 Jan 2007 20:02:17 +0000 Subject: [PATCH] Commited patch from RavuAlHemio (bug #133) due to his svn write access problems. SVN-Revision: 4692 --- src/scripting/functions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripting/functions.cpp b/src/scripting/functions.cpp index 456b351fc..b97881344 100644 --- a/src/scripting/functions.cpp +++ b/src/scripting/functions.cpp @@ -166,7 +166,8 @@ void save_state() if(World::current() == NULL) throw std::runtime_error("Can't save state without active World"); - WorldMap::current()->save_state(); + if(WorldMap::current() != NULL) + WorldMap::current()->save_state(); World::current()->save_state(); } -- 2.11.0