From 6583b66e823d0c72b2c372b7515198d886395167 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Fri, 20 Aug 2010 13:06:01 +0200 Subject: [PATCH] added load function for exteriors to cell sstore --- components/esm_store/cell_store.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/esm_store/cell_store.hpp b/components/esm_store/cell_store.hpp index d4d7cc2f8..2f0dfc407 100644 --- a/components/esm_store/cell_store.hpp +++ b/components/esm_store/cell_store.hpp @@ -124,7 +124,14 @@ namespace ESMS /** Ditto for exterior cell. */ void loadExt(int X, int Y, const ESMStore &store, ESMReader &esm) { + std::cout << "loading exterior cell '" << X << ", " << Y << "'\n"; + cell = store.cells.searchExt (X, Y); + + if(cell == NULL) + throw str_exception("Exterior cell not found"); + + loadRefs(store, esm); } private: