forked from mirror/openmw-tes3mp
Ensure a valid CellStore for Ptr::isInCell
This commit is contained in:
parent
1f436f9886
commit
a9cc3a2844
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ namespace MWWorld
|
||||||
|
|
||||||
bool isInCell() const
|
bool isInCell() const
|
||||||
{
|
{
|
||||||
return (mContainerStore == 0);
|
return (mContainerStore == 0) && (mCell != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setContainerStore (ContainerStore *store);
|
void setContainerStore (ContainerStore *store);
|
||||||
|
|
Loading…
Reference in a new issue