From cdcc244fc59378f470445446ae96f5ef0683913d Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sun, 4 Jul 2010 10:50:19 +0200 Subject: [PATCH] automatically start start scripts at startup --- apps/openmw/mwscript/globalscripts.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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)