From aabe9eaf131d163bac01507e7e782a77da3e1e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Thu, 3 Mar 2022 16:21:58 -0700 Subject: [PATCH] Use correct slot for paging --- src/transmog_scripts.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/transmog_scripts.cpp b/src/transmog_scripts.cpp index cf4ebb1..36441c8 100644 --- a/src/transmog_scripts.cpp +++ b/src/transmog_scripts.cpp @@ -394,23 +394,23 @@ public: } 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) { - 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) { - AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Previous Page", gossipPageNumber - 1, 0); + AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Previous Page", gossipPageNumber - 1, slot); 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) { - 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