Fix for nil value from changed spec event.
Peter Eliasson [01-18-15 - 17:28]
Fix for nil value from changed spec event.
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