hopefully fixed the crash on exit, keep sectors script bundled in the sector and...
[supertux.git] / src / console.cpp
index 091619c..257172c 100644 (file)
@@ -72,7 +72,7 @@ Console::execute_script(const std::string& command)
 {
   using namespace Scripting;
 
-  HSQUIRRELVM vm = script_manager->get_global_vm();
+  HSQUIRRELVM vm = ScriptManager::instance->get_vm();
 
   if(command == "")
     return;