mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
fixed isInCell method
This commit is contained in:
parent
6fc64e8a4e
commit
3c6ddd7fa7
@ -90,6 +90,7 @@ MWWorld::ContainerStoreIterator MWWorld::ContainerStore::add (const Ptr& ptr)
|
|||||||
cell = player.getCell();
|
cell = player.getCell();
|
||||||
|
|
||||||
item.mCell = cell;
|
item.mCell = cell;
|
||||||
|
item.mContainerStore = 0;
|
||||||
MWBase::Environment::get().getWorld()->getLocalScripts().add(script, item);
|
MWBase::Environment::get().getWorld()->getLocalScripts().add(script, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ namespace MWWorld
|
|||||||
|
|
||||||
bool isInCell() const
|
bool isInCell() const
|
||||||
{
|
{
|
||||||
return (mCell != 0);
|
return (mContainerStore == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setContainerStore (ContainerStore *store);
|
void setContainerStore (ContainerStore *store);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user