mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
Use correct slot for paging
This commit is contained in:
@@ -394,23 +394,23 @@ public:
|
|||||||
}
|
}
|
||||||
if (gossipPageNumber == EQUIPMENT_SLOT_END + 11)
|
if (gossipPageNumber == EQUIPMENT_SLOT_END + 11)
|
||||||
{
|
{
|
||||||
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Previous Page", EQUIPMENT_SLOT_END, 0);
|
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Previous Page", EQUIPMENT_SLOT_END, slot);
|
||||||
if (!lastPage)
|
if (!lastPage)
|
||||||
{
|
{
|
||||||
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Next Page", gossipPageNumber + 1, 0);
|
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Next Page", gossipPageNumber + 1, slot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (gossipPageNumber > EQUIPMENT_SLOT_END + 11)
|
else if (gossipPageNumber > EQUIPMENT_SLOT_END + 11)
|
||||||
{
|
{
|
||||||
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Previous Page", gossipPageNumber - 1, 0);
|
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Previous Page", gossipPageNumber - 1, slot);
|
||||||
if (!lastPage)
|
if (!lastPage)
|
||||||
{
|
{
|
||||||
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Next Page", gossipPageNumber + 1, 0);
|
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Next Page", gossipPageNumber + 1, slot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!lastPage)
|
else if (!lastPage)
|
||||||
{
|
{
|
||||||
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Next Page", EQUIPMENT_SLOT_END + 11, 0);
|
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Next Page", EQUIPMENT_SLOT_END + 11, slot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user