diff --git a/Source/Contents/Items/RuneSystem.cpp b/Source/Contents/Items/RuneSystem.cpp index 10af8443..c45794c3 100644 --- a/Source/Contents/Items/RuneSystem.cpp +++ b/Source/Contents/Items/RuneSystem.cpp @@ -314,7 +314,7 @@ bool RuneData::IsActive() const { // FUNCTION: fn_08132 const std::pair& CRuneSystemMgr::GetItemListEntry(int listId, unsigned int index) { const auto found = this->m_itemLists.find(listId); - if (found == this->m_itemLists.end() || index >= found->second.size()) { + if (this->m_itemLists.end() == found || index >= found->second.size()) { return this->m_emptyItem; } @@ -325,7 +325,7 @@ const std::pair& CRuneSystemMgr::GetItemListEntry(int listId, unsigned // FUNCTION: fn_08133 int CRuneSystemMgr::GetItemListCount(int listId) { const auto found = this->m_itemLists.find(listId); - if (found != this->m_itemLists.end()) { + if (this->m_itemLists.end() != found) { return static_cast(found->second.size()); }