How to Test:
use this code to verify server doesn't crash after attempting to add more than 32 GossipMenuItems
local function hello(event, player, object)
for n = 1, 40, 1 do
player:GossipMenuAddItem(1, "Text "..n, 20124, n)
print("added: "..n)
end
player:GossipSendMenu(0, object, 0)
end
RegisterCreatureGossipEvent(20124, 1, hello)
(Code copied from @55Honey in the issue linked above)
closes https://github.com/azerothcore/mod-eluna/issues/118
How to Test: use this code to verify server doesn't crash after attempting to add more than 32 GossipMenuItems
(Code copied from @55Honey in the issue linked above)
Expected Output in world-server console:![grafik](https://github.com/azerothcore/mod-eluna/assets/76077537/7ca87628-85ce-409a-97c7-ae1ce3c4e90c)