From b7bb887dff59535d57f9382d3774476f9006b17b Mon Sep 17 00:00:00 2001 From: Peter Eliasson Date: Sun, 18 Jan 2015 18:28:33 +0100 Subject: [PATCH] Fix for nil value from changed spec event. --- src/inspect.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inspect.lua b/src/inspect.lua index 91df3b1..68e8036 100644 --- a/src/inspect.lua +++ b/src/inspect.lua @@ -262,7 +262,7 @@ function inspect:ZONE_CHANGED_NEW_AREA(evt) end function inspect:PLAYER_SPECIALIZATION_CHANGED(evt, unitId) - if unitId ~= "player" then + if unitId and unitId ~= "player" then local playerId = UnitGUID(unitId); unsetPlayerInspectCache(playerId); end -- 1.7.9.5