Skip to content

Commit 697d186

Browse files
committed
Fix error when opening certain dialogs (fixes #12)
1 parent b340ce2 commit 697d186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function DialogKey:OnGossipFrameUpdate(GossipFrame)
205205
if tag then
206206
if self.db.numKeysForGossip then
207207
local oldText = data.info[tag]
208-
if (FlagsUtil.IsSet(data.info.flags, Enum.GossipOptionRecFlags.QuestLabelPrepend)) then
208+
if data.info.flags and FlagsUtil.IsSet(data.info.flags, Enum.GossipOptionRecFlags.QuestLabelPrepend) then
209209
oldText = GOSSIP_QUEST_OPTION_PREPEND:format(oldText);
210210
end
211211
local newText = (n % 10) .. ". " .. (oldText:match("^%d. (.+)$") or oldText)

0 commit comments

Comments
 (0)