From af5fb7916fa5e949695662bb0849c39f7ea3ed53 Mon Sep 17 00:00:00 2001 From: greye Date: Thu, 8 Nov 2012 21:07:14 +0400 Subject: [PATCH] fix searching in store --- apps/openmw/mwworld/store.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/store.hpp b/apps/openmw/mwworld/store.hpp index 395abcd837..97b61b5287 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); }