diff --git a/apps/openmw/mwworld/cellstore.cpp b/apps/openmw/mwworld/cellstore.cpp index 6be2075c4..c062fc0af 100644 --- a/apps/openmw/mwworld/cellstore.cpp +++ b/apps/openmw/mwworld/cellstore.cpp @@ -184,7 +184,7 @@ namespace bool operator()(const PtrType& ptr) { - if (ptr.getCellRef().getRefNum() == mRefNumToFind) + if (ptr.getCellRef().getRefNum().mIndex == mRefNumToFind.mIndex) { mFound = ptr; return false;