1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 05:36:43 +00:00

fixed isInCell method

This commit is contained in:
Tom Mason 2013-01-20 14:10:04 +00:00
parent 6fc64e8a4e
commit 3c6ddd7fa7
2 changed files with 2 additions and 1 deletions

View file

@ -90,6 +90,7 @@ MWWorld::ContainerStoreIterator MWWorld::ContainerStore::add (const Ptr& ptr)
cell = player.getCell();
item.mCell = cell;
item.mContainerStore = 0;
MWBase::Environment::get().getWorld()->getLocalScripts().add(script, item);
}

View file

@ -74,7 +74,7 @@ namespace MWWorld
bool isInCell() const
{
return (mCell != 0);
return (mContainerStore == 0);
}
void setContainerStore (ContainerStore *store);