forked from mirror/openmw-tes3mp
resolve Script::mData.mName -> mId, resolve moving ESMStore
This commit is contained in:
parent
10ae5d3365
commit
8691eac557
5 changed files with 7 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace ESM
|
|||
struct SCHD
|
||||
{
|
||||
NAME32 mName;
|
||||
SCHDstruct mData;
|
||||
Script::SCHDstruct mData;
|
||||
};
|
||||
|
||||
void Script::load(ESMReader &esm)
|
||||
|
|
Loading…
Reference in a new issue