make ESMStore setting up itself after loading

actorid
greye 12 years ago
parent bc218759e9
commit 11c0e6382f

@ -84,6 +84,7 @@ void ESMStore::load(ESM::ESMReader &esm)
cout << *it << " ";
cout << endl;
*/
setUp();
}
void ESMStore::setUp()

@ -139,7 +139,6 @@ namespace MWWorld
}
void load(ESM::ESMReader &esm);
void setUp();
template <class T>
const Store<T> &get() const {
@ -164,6 +163,8 @@ namespace MWWorld
return ptr;
}
private:
void setUp();
};
template <>

@ -188,7 +188,6 @@ namespace MWWorld
mEsm.setEncoding(encoding);
mEsm.open (masterPath.string());
mStore.load (mEsm);
mStore.setUp();
mPlayer = new MWWorld::Player (mStore.get<ESM::NPC>().find ("player"), *this);
mRendering->attachCameraTo(mPlayer->getPlayer());

Loading…
Cancel
Save