From 6fde02ea426ee583ece2c3d22a4d6717adcd9eb2 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 29 Dec 2015 15:22:19 +0100 Subject: [PATCH] LocalScripts: initialize mIter --- apps/openmw/mwworld/localscripts.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/localscripts.cpp b/apps/openmw/mwworld/localscripts.cpp index 46d0b3cc2..2004a2ff3 100644 --- a/apps/openmw/mwworld/localscripts.cpp +++ b/apps/openmw/mwworld/localscripts.cpp @@ -61,7 +61,10 @@ namespace } -MWWorld::LocalScripts::LocalScripts (const MWWorld::ESMStore& store) : mStore (store) {} +MWWorld::LocalScripts::LocalScripts (const MWWorld::ESMStore& store) : mStore (store) +{ + mIter = mScripts.end(); +} void MWWorld::LocalScripts::setIgnore (const ConstPtr& ptr) {