1
0
Bifurcation 0

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 à :
Nathanial.C.Jones 2011-02-12 13:09:54 +00:00
Parent 5a8061d1ef
révision 4e4b3b9b2c
1 fichiers modifiés avec 6 ajouts et 4 suppressions

Voir le fichier

@ -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)