Ensure a valid CellStore for Ptr::isInCell

This commit is contained in:
Chris Robinson 2013-08-04 21:33:11 -07:00
parent 1f436f9886
commit a9cc3a2844

View file

@ -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);