GetQuestItemInfo occasionally returns wrong or incomplete data in response to QUEST_DETAIL/QUEST_COMPLETE.
The readout in chat comes from this print probe:
Lua Code:
print(i, questItem.type, GetQuestItemInfo(questItem.type, i))
-- where i=1 to GetNumQuestRewards() and questItem.type == 'reward'
With the data:
Lua Code:
------------------
-- 1st attempt
------------------
nil, -- name
134830, -- texture
2, -- numItems
0, -- quality
true, -- isUsable
------------------
-- 2nd attempt
------------------
"Lesser Healing Potion", -- name
134830, -- texture
2, -- numItems
1, -- quality
true, -- isUsable
If there's something I'm missing here, such as a requirement to scrub the data before you call these functions or something to that effect, feel free to respond to this thread.