From a9cc3a284446dcc4d5e7a7588690a4cb6472e071 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 4 Aug 2013 21:33:11 -0700 Subject: [PATCH] Ensure a valid CellStore for Ptr::isInCell --- apps/openmw/mwworld/ptr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/ptr.hpp b/apps/openmw/mwworld/ptr.hpp index 14e2c76a4..2cb92ce2f 100644 --- a/apps/openmw/mwworld/ptr.hpp +++ b/apps/openmw/mwworld/ptr.hpp @@ -74,7 +74,7 @@ namespace MWWorld bool isInCell() const { - return (mContainerStore == 0); + return (mContainerStore == 0) && (mCell != 0); } void setContainerStore (ContainerStore *store);