From d96e49c04af7d17028ca3be2d309e16668642f8e Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 2 Jul 2016 20:33:37 +0200 Subject: [PATCH] Do not set change flag when running forEach on an empty cell --- apps/openmw/mwworld/cellstore.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/openmw/mwworld/cellstore.hpp b/apps/openmw/mwworld/cellstore.hpp index d753c9745..36cc7f5eb 100644 --- a/apps/openmw/mwworld/cellstore.hpp +++ b/apps/openmw/mwworld/cellstore.hpp @@ -258,6 +258,9 @@ namespace MWWorld if (mState != State_Loaded) return false; + if (mMergedRefs.empty()) + return true; + mHasState = true; for (unsigned int i=0; i& list = get();