From 2c8764ca12c18f3faa1c2e45fce927dbd0ba1da8 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sat, 18 Jan 2025 12:47:29 -0300 Subject: [PATCH] fix logic in the last interface implementation (#189) --- src/transmog_scripts.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/transmog_scripts.cpp b/src/transmog_scripts.cpp index ef0a853f..fccb16c4 100644 --- a/src/transmog_scripts.cpp +++ b/src/transmog_scripts.cpp @@ -543,12 +543,10 @@ class npc_transmogrifier : public CreatureScript bool useVendorInterface = player->GetPlayerSetting("mod-transmog", SETTING_VENDOR_INTERFACE).IsEnabled(); - if (sT->GetUseVendorInterface()) - useVendorInterface ? ShowTransmogItemsInFakeVendor(player, creature, action) : - ShowTransmogItemsInGossipMenu(player, creature, action, sender); - else - useVendorInterface ? ShowTransmogItemsInGossipMenu(player, creature, action, sender) : + if (sT->GetUseVendorInterface() || useVendorInterface) ShowTransmogItemsInFakeVendor(player, creature, action); + else + ShowTransmogItemsInGossipMenu(player, creature, action, sender); break; }