From e105202ee2a76cbc2880e7772fea4def6c0ed9df Mon Sep 17 00:00:00 2001 From: Ragora Date: Thu, 11 Sep 2014 22:45:30 -0400 Subject: [PATCH] Use std::set instead of std::map --- apps/openmw/mwgui/itemmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/itemmodel.cpp b/apps/openmw/mwgui/itemmodel.cpp index 36c2d5b78..17f787dcb 100644 --- a/apps/openmw/mwgui/itemmodel.cpp +++ b/apps/openmw/mwgui/itemmodel.cpp @@ -21,7 +21,7 @@ namespace MWGui if (base.getClass().getEnchantment(base) != "") mFlags |= Flag_Enchanted; - static std::map boundItemIDCache; + static std::set boundItemIDCache; // If this is empty then we haven't executed the GMST cache logic yet; or there isn't any sMagicBound* GMST's for some reason if (boundItemIDCache.empty()) @@ -43,7 +43,7 @@ namespace MWGui std::string currentGMSTValue = currentSetting.getString(); Misc::StringUtils::toLower(currentGMSTValue); - boundItemIDCache[currentGMSTValue] = true; + boundItemIDCache.insert(currentGMSTValue); } }