fixed broken remote member variable access

This commit is contained in:
Marc Zinnschlag 2014-02-12 13:35:24 +01:00
parent 93d4743012
commit 388735046f

View file

@ -66,7 +66,7 @@ namespace MWScript
{ {
const MWWorld::Ptr ptr = getReference (id, false); const MWWorld::Ptr ptr = getReference (id, false);
std::string id = MWWorld::Class::get (ptr).getScript (ptr); id = MWWorld::Class::get (ptr).getScript (ptr);
ptr.getRefData().setLocals ( ptr.getRefData().setLocals (
*MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (id)); *MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (id));
@ -86,7 +86,7 @@ namespace MWScript
{ {
const MWWorld::Ptr ptr = getReference (id, false); const MWWorld::Ptr ptr = getReference (id, false);
std::string id = MWWorld::Class::get (ptr).getScript (ptr); id = MWWorld::Class::get (ptr).getScript (ptr);
ptr.getRefData().setLocals ( ptr.getRefData().setLocals (
*MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (id)); *MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (id));