resolve Script::mData.mName -> mId, resolve moving ESMStore

actorid
greye 12 years ago
parent 10ae5d3365
commit 8691eac557

@ -1213,7 +1213,7 @@ void Record<ESM::Region>::print()
template<>
void Record<ESM::Script>::print()
{
std::cout << " Name: " << mData.mData.mName.toString() << std::endl;
std::cout << " Name: " << mData.mId << std::endl;
std::cout << " Num Shorts: " << mData.mData.mNumShorts << std::endl;
std::cout << " Num Longs: " << mData.mData.mNumLongs << std::endl;

@ -2,14 +2,13 @@
#include <boost/lexical_cast.hpp>
#include <components/esm_store/store.hpp>
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/soundmanager.hpp"
#include "../mwworld/esmstore.hpp"
#include "../mwworld/player.hpp"
#include "../mwworld/class.hpp"

@ -13,11 +13,11 @@
#include <components/esm/loadgmst.hpp>
#include <components/esm/loadmgef.hpp>
#include <components/esm_store/store.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/esmstore.hpp"
#include "../mwworld/containerstore.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/cellstore.hpp"
@ -192,7 +192,7 @@ void MWMechanics::Alchemy::updateEffects()
const ESM::Potion *MWMechanics::Alchemy::getRecord() const
{
for (ESMS::RecListWithIDT<ESM::Potion>::MapType::const_iterator iter (
for (MWWorld::RecListWithIDT<ESM::Potion>::MapType::const_iterator iter (
MWBase::Environment::get().getWorld()->getStore().potions.list.begin());
iter!=MWBase::Environment::get().getWorld()->getStore().potions.list.end(); ++iter)
{

@ -528,7 +528,7 @@ namespace MWWorld
X ref;
ref.load (esm);
std::string realId = toLower (ref.mData.mName.toString());
std::string realId = toLower (ref.mId);
std::swap (list[realId], ref);
}

@ -8,8 +8,8 @@ namespace ESM
struct SCHD
{
NAME32 mName;
SCHDstruct mData;
NAME32 mName;
Script::SCHDstruct mData;
};
void Script::load(ESMReader &esm)

Loading…
Cancel
Save