From b448fc7d4cff41cc4df1c5e3754666db6dc95c91 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Tue, 27 Sep 2011 10:22:55 +0200 Subject: [PATCH] Issue #31: Do not try to load dynamical generated cells from ESM/P files --- components/esm_store/cell_store.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/esm_store/cell_store.hpp b/components/esm_store/cell_store.hpp index 1336cc2ab..19cb34c01 100644 --- a/components/esm_store/cell_store.hpp +++ b/components/esm_store/cell_store.hpp @@ -189,6 +189,9 @@ namespace ESMS { assert (cell); + if (cell->context.filename.empty()) + return; // this is a dynamically generated cell -> skipping. + // Reopen the ESM reader and seek to the right position. cell->restore (esm); @@ -212,6 +215,9 @@ namespace ESMS { assert (cell); + if (cell->context.filename.empty()) + return; // this is a dynamically generated cell -> skipping. + // Reopen the ESM reader and seek to the right position. cell->restore(esm);