@ -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:
};
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());