From: Arvid Norlander Date: Sat, 27 Jan 2007 20:02:17 +0000 (+0000) Subject: Commited patch from RavuAlHemio (bug #133) due to his svn write access problems. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f1bc1eeb4ab31b20829921e4074f0f54c8c66d1d;p=supertux.git Commited patch from RavuAlHemio (bug #133) due to his svn write access problems. SVN-Revision: 4692 --- 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(); }