diff --git a/apps/openmw/mwworld/store.hpp b/apps/openmw/mwworld/store.hpp index 395abcd83..97b61b528 100644 --- a/apps/openmw/mwworld/store.hpp +++ b/apps/openmw/mwworld/store.hpp @@ -110,7 +110,7 @@ namespace MWWorld typename std::vector::const_iterator it = std::lower_bound(mStatic.begin(), mStatic.end(), item, RecordCmp()); - if (it != mStatic.end() && it->mId == item.mId) { + if (it != mStatic.end() && StringUtils::ciEqual(it->mId, id)) { return &(*it); }