Skip to content

Commit

Permalink
Fix delegating Eluna non-coded gossip select callbacks
Browse files Browse the repository at this point in the history
At least for creatures and GOs.
Not sure this ever worked, at least since 2015 initial commit.
  • Loading branch information
Pysis868 authored and billy1arm committed Mar 5, 2025
1 parent e6d2478 commit 60bf97d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/game/WorldHandlers/ScriptMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2765,12 +2765,12 @@ bool ScriptMgr::OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 send
return true;
}
}
}
else
{
if (e->OnGossipSelect(pPlayer, pCreature, sender, action))
else
{
return true;
if (e->OnGossipSelect(pPlayer, pCreature, sender, action))
{
return true;
}
}
}
#endif /* ENABLE_ELUNA */
Expand Down Expand Up @@ -2803,12 +2803,12 @@ bool ScriptMgr::OnGossipSelect(Player* pPlayer, GameObject* pGameObject, uint32
return true;
}
}
}
else
{
if (e->OnGossipSelect(pPlayer, pGameObject, sender, action))
else
{
return true;
if (e->OnGossipSelect(pPlayer, pGameObject, sender, action))
{
return true;
}
}
}
#endif /* ENABLE_ELUNA */
Expand Down

0 comments on commit 60bf97d

Please sign in to comment.