Fix: Tooltip nil name concatenation error
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v9.7.4
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- **[Tooltips]** Fixed "attempt to concatenate local 'name' (a nil value)" error when quest starters/finishers have missing names in the database.
|
||||||
|
- **[Database]** Fixed "Unknown Zone" issue for custom quests by correcting Zone ID index usage (swapped `[6]` RequiredRaces for `[17]` ZoneID).
|
||||||
|
- **[Database]** Corrected Dragonblight Zone ID in custom quest definitions.
|
||||||
|
|
||||||
## v9.7.3
|
## v9.7.3
|
||||||
|
|
||||||
### New Features
|
### New Features
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ end
|
|||||||
---@param starterId number The ID of the object or NPC the tooltip should show on
|
---@param starterId number The ID of the object or NPC the tooltip should show on
|
||||||
---@param key string @Either m_<npcId> or o_<objectId>
|
---@param key string @Either m_<npcId> or o_<objectId>
|
||||||
function QuestieTooltips:RegisterQuestStartTooltip(questId, name, starterId, key)
|
function QuestieTooltips:RegisterQuestStartTooltip(questId, name, starterId, key)
|
||||||
|
if not name then
|
||||||
|
return
|
||||||
|
end
|
||||||
if not QuestieTooltips.lookupByKey[key] then
|
if not QuestieTooltips.lookupByKey[key] then
|
||||||
QuestieTooltips.lookupByKey[key] = {};
|
QuestieTooltips.lookupByKey[key] = {};
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user