Ensure a valid CellStore for Ptr::isInCell

pull/51/head
Chris Robinson 12 years ago
parent 1f436f9886
commit a9cc3a2844

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

Loading…
Cancel
Save