mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04:00
Ensure a valid CellStore for Ptr::isInCell
This commit is contained in:
parent
1f436f9886
commit
a9cc3a2844
@ -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…
x
Reference in New Issue
Block a user