Should resolve issue 323. Apparently SetObjective is being called explicitly with nil on line 259. Resolution is to check to see if we're getting nil or not. If something comes in, we then assert.
Cette révision appartient à :
Parent
5a8061d1ef
révision
4e4b3b9b2c
|
@ -1105,10 +1105,12 @@ function QuestHelper:CreateMipmapDodad()
|
|||
end
|
||||
|
||||
function icon:SetObjective(obj)
|
||||
QuestHelper: Assert(obj.loc, "Objective has no location data.")
|
||||
QuestHelper: Assert(obj.loc.c, "c is nil")
|
||||
QuestHelper: Assert(obj.loc.x, "x is nil")
|
||||
QuestHelper: Assert(obj.loc.y, "y is nil")
|
||||
if obj then
|
||||
QuestHelper: Assert(obj.loc, "Objective has no location data.")
|
||||
QuestHelper: Assert(obj.loc.c, "c is nil")
|
||||
QuestHelper: Assert(obj.loc.x, "x is nil")
|
||||
QuestHelper: Assert(obj.loc.y, "y is nil")
|
||||
end
|
||||
self:SetHeight(20*QuestHelper_Pref.scale)
|
||||
self:SetWidth(20*QuestHelper_Pref.scale)
|
||||
|
||||
|
|
Référencer dans un nouveau ticket