Skip to content

Commit

Permalink
improve order of execution
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed May 8, 2022
1 parent 04285e3 commit fcd8053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/AI/ScriptDevAI/scripts/world/npcs_special.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fcd8053

Please sign in to comment.