ICWutUDidThere

2 - Guards against an error that can occur if spell_id is nil.

What does the provided patch do?

Guards against an error that can occur if spell_id is nil.

Please provide any additional information below.

--- icwutudidthere/ICWutUDidThere.lua	2012-11-10 10:02:08.367109800 -0500
+++ icwutudidthere/ICWutUDidThere.lua	2012-11-10 10:25:02.051776600 -0500
@@ -51,7 +51,9 @@
 		show = true
 	end
 	if IsAltKeyDown() then
-		tooltip:AddLine(strformat(SPELLID_TEXT,spell_id))
+		if spell_id then
+			tooltip:AddLine(strformat(SPELLID_TEXT,spell_id))
+		end
 		show = true
 	end
 	if show then
User When Change
Expf Nov 10, 2012 at 15:29 UTC Create

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

Facts

Reported
Nov 10, 2012
Status
New - Issue has not had initial review yet.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees