Broker QuestHelper

1 - bad global access to quest at 129

This should fix it:

local function BQH_obj_lookup(qName)
    for i, objective in pairs(QuestHelper.route do
        if (objective.watched then
            local quest
            if (QuestHelper.route[i].cat == "quest") then
                quest = QuestHelper.route[i]
            elseif (QuestHelper.route[i] and QuestHelper.route[i].quest) then
                quest = QuestHelper.route[i].quest
            end
            if (quest) then
                local level, name = string.match(quest.obj, "^(%d+)/%d*/(.*)$")
                if (name == qName) then
                    return true
                end
            end
        end
    end
    return false
end

User When Change
Azethoth Thu, 04 Dec 2008 06:54:05 Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Reported on
04 Dec 2008
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.

Reported by

Possible assignees