# HG changeset patch # User Tercio # Date 1465255466 10800 # Node ID 2218520e3e64f4061cd301564781a796af9dbbd2 # Parent f2a55f2d45c820e8ebd006761b498b0aae11651a - small fixes. diff -r f2a55f2d45c8 -r 2218520e3e64 PVPScan.lua --- a/PVPScan.lua Fri Feb 12 14:11:13 2016 -0200 +++ b/PVPScan.lua Mon Jun 06 20:24:26 2016 -0300 @@ -448,7 +448,7 @@ function PVPScan:CheckNonCombatSpotBars() for i = 1, PVPScan.db.profile.SpotBarAmount do local SpotObject = PVPScan.SpotBars [i] - if (SpotObject.InUse and (SpotObject.NonTargetFrame:IsShown() or SpotObject.NeedUpdate)) then + if (SpotObject and SpotObject.InUse and (SpotObject.NonTargetFrame:IsShown() or SpotObject.NeedUpdate)) then PVPScan:UpdateBar (SpotObject, SpotObject.PlayerName, SpotObject.PlayerClass) end end @@ -666,7 +666,7 @@ --> misc function PVPScan:GuessClass (...) - local arg1, arg2, arg3, arg4 = select (1, ...) + local arg1 = select (1, ...) if (type (arg1) == "number") then local spellname = GetSpellInfo (arg1)