From 43fa785712bd36701060a2231c06b311f5951044 Mon Sep 17 00:00:00 2001 From: AnterGhost Date: Thu, 16 Feb 2017 22:56:08 +0000 Subject: [PATCH] Fixed model listbox in skins --- src/ATGUI/Tabs/skinstab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ATGUI/Tabs/skinstab.cpp b/src/ATGUI/Tabs/skinstab.cpp index 84482005e..1edcd8858 100644 --- a/src/ATGUI/Tabs/skinstab.cpp +++ b/src/ATGUI/Tabs/skinstab.cpp @@ -73,7 +73,7 @@ void SplitSkins() { if (!(Util::Contains(Util::ToLower(std::string(filterModelsCT)), Util::ToLower(Util::Items::GetItemDisplayName(model.first))) || Util::Contains(Util::ToLower(std::string(filterModelsCT)), Util::ToLower(Util::Items::GetItemEntityName(model.first))))) continue; - if (Util::Items::isUtility(model.first) || model.first == ItemDefinitionIndex::GLOVE_CT_SIDE || model.first == ItemDefinitionIndex::GLOVE_T_SIDE || Util::Items::isTWeapon(model.first) || model.first == ItemDefinitionIndex::WEAPON_KNIFE || model.first == ItemDefinitionIndex::WEAPON_KNIFE_T) + if (model.first == ItemDefinitionIndex::INVALID || Util::Items::isUtility(model.first) || model.first == ItemDefinitionIndex::GLOVE_CT_SIDE || model.first == ItemDefinitionIndex::GLOVE_T_SIDE || Util::Items::isTWeapon(model.first) || model.first == ItemDefinitionIndex::WEAPON_KNIFE || model.first == ItemDefinitionIndex::WEAPON_KNIFE_T) continue; const bool item_selected = ((int) model.first == modelCT); ImGui::PushID((int) model.first); @@ -130,7 +130,7 @@ void SplitSkins() { if (!(Util::Contains(Util::ToLower(std::string(filterModelsT)), Util::ToLower(Util::Items::GetItemDisplayName(model.first))) || Util::Contains(Util::ToLower(std::string(filterModelsT)), Util::ToLower(Util::Items::GetItemEntityName(model.first))))) continue; - if (Util::Items::isUtility(model.first) || model.first == ItemDefinitionIndex::GLOVE_CT_SIDE || model.first == ItemDefinitionIndex::GLOVE_T_SIDE || Util::Items::isCTWeapon(model.first) || model.first == ItemDefinitionIndex::WEAPON_KNIFE || model.first == ItemDefinitionIndex::WEAPON_KNIFE_T) + if (model.first == ItemDefinitionIndex::INVALID || Util::Items::isUtility(model.first) || model.first == ItemDefinitionIndex::GLOVE_CT_SIDE || model.first == ItemDefinitionIndex::GLOVE_T_SIDE || Util::Items::isCTWeapon(model.first) || model.first == ItemDefinitionIndex::WEAPON_KNIFE || model.first == ItemDefinitionIndex::WEAPON_KNIFE_T) continue; const bool item_selected = ((int) model.first == modelT); ImGui::PushID((int) model.first);