From 87fd011a283188b51e6865644cb6dfa2b4eb657d Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Thu, 22 Dec 2016 20:48:58 +0100 Subject: [PATCH] Clean-up saves by dropping references with invalid RefNums (Fixes #1956) --- apps/openmw/mwworld/cellstore.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwworld/cellstore.cpp b/apps/openmw/mwworld/cellstore.cpp index 5e65bad7c..ff3427e12 100644 --- a/apps/openmw/mwworld/cellstore.cpp +++ b/apps/openmw/mwworld/cellstore.cpp @@ -137,6 +137,9 @@ namespace iter->load (state); return; } + + std::cerr << "Dropping reference to " << state.mRef.mRefID << " (invalid content file link)" << std::endl; + return; } // new reference