diff --git a/apps/openmw/mwscript/globalscripts.cpp b/apps/openmw/mwscript/globalscripts.cpp index 57961f4d2..8512eaaad 100644 --- a/apps/openmw/mwscript/globalscripts.cpp +++ b/apps/openmw/mwscript/globalscripts.cpp @@ -9,6 +9,11 @@ namespace MWScript : mStore (store), mScriptManager (scriptManager) { addScript ("Main"); + + for (ESMS::RecListT::MapType::const_iterator iter + (store.startScripts.list.begin()); + iter != store.startScripts.list.end(); ++iter) + addScript (iter->second.script); } void GlobalScripts::addScript (const std::string& name)