From fcd80535d601a4e2551b1ea809fe3b50384b31e3 Mon Sep 17 00:00:00 2001 From: insunaa Date: Sun, 8 May 2022 07:59:38 +0200 Subject: [PATCH] improve order of execution --- src/game/AI/ScriptDevAI/scripts/world/npcs_special.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/AI/ScriptDevAI/scripts/world/npcs_special.cpp b/src/game/AI/ScriptDevAI/scripts/world/npcs_special.cpp index fee859d4c2..803c52b0d2 100644 --- a/src/game/AI/ScriptDevAI/scripts/world/npcs_special.cpp +++ b/src/game/AI/ScriptDevAI/scripts/world/npcs_special.cpp @@ -2852,7 +2852,7 @@ void LearnSkillRecipesHelper(Player* player, uint32 skill_id) bool GossipSelect_npc_paymaster(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction) { - if (pPlayer->GetFreePrimaryProfessionPoints() == 0 && uiAction > GOSSIP_ACTION_INFO_DEF + 4) + if (uiAction > GOSSIP_ACTION_INFO_DEF + 4 && pPlayer->GetFreePrimaryProfessionPoints() == 0) return false; FactionEntry const* factionEntry;