lua error when taking a portal from one city to another.
Message: ...terface/AddOns/TitanClassicAmmo/TitanClassicAmmo.lua:125: Usage: GetItemInfo(itemID|"name"|"itemlink")
Time: Wed Jan 18 16:30:33 2023
Count: 2
Stack: ...terface/AddOns/TitanClassicAmmo/TitanClassicAmmo.lua:125: Usage: GetItemInfo(itemID|"name"|"itemlink")
[string "=[C]"]: in function GetItemInfo'
[string "@Interface/AddOns/TitanClassicAmmo/TitanClassicAmmo.lua"]:125: in function <...terface/AddOns/TitanClassicAmmo/TitanClassicAmmo.lua:109>
[string "@Interface/AddOns/TitanClassicAmmo/TitanClassicAmmo.lua"]:233: in functionTitanPanelAmmoUpdateDisplay'
[string "@Interface/AddOns/TitanClassicAmmo/TitanClassicAmmo.lua"]:217: in function `TitanPanelAmmoButton_MERCHANT_CLOSED'
[string "@Interface/AddOns/TitanClassicAmmo/TitanClassicAmmo.lua"]:175: in function <...terface/AddOns/TitanClassicAmmo/TitanClassicAmmo.lua:167>
Locals:
it looks like GetInventoryItemID() is returning nil immediately after zoning into a new location and GetItemInfo() throws an exception when fed the nil value
i found i just needed to change modify the else block in question to the following:
i hope this helps :)
Last edit: phobomancer 2023-02-11
I actually released 1.5.5.30401 this afternoon before seeing this. I'm hoping that the nil from the slot is caused by triggering on PLAYER_LOGIN which happens very early so I changed it to trigger on PLAYER_ENTERING_WORLD. If that still doesn't resolve it, I will certainly incorporate your change. Thank you.
Patched in 1.5.6 release.