{
using namespace WorldMapNS;
- if(World::current() == NULL)
+ if(World::current() == NULL || WorldMap::current() == NULL)
throw std::runtime_error("Can't save state without active World");
WorldMap::current()->save_state();
{
using namespace WorldMapNS;
- if(World::current() == NULL)
- throw std::runtime_error("Can't save state without active World");
+ if(WorldMap::current() == NULL)
+ throw std::runtime_error("Can't update Worldmap: none active");
WorldMap::current()->load_state();
}