Skip to content

Commit 438a8a0

Browse files
committed
Fixing error for unsupported classes.
1 parent 7062dff commit 438a8a0

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

Core.lua

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -551,16 +551,18 @@ function SimplePointDisplay:UpdatePoints(...)
551551
-- Normal update: Cycle through valid classes
552552
for ic,vc in pairs(UpdateList) do
553553
-- Cycle through point types for current class
554-
for it,vt in ipairs(Types[ic].points) do
555-
local tid = Types[ic].points[it].id
556-
if ( db[ic].types[tid].enabled and not db[ic].types[tid].configmode.enabled ) then
557-
-- Retrieve new point count
558-
local OldPoints = Points[tid]
559-
SimplePointDisplay:GetPoints(ic, tid)
560-
if Points[tid] ~= OldPoints then
561-
-- Points have changed, flag for updating
562-
HasChanged = true
563-
PointsChanged[tid] = true
554+
if Types[ic] then
555+
for it,vt in ipairs(Types[ic].points) do
556+
local tid = Types[ic].points[it].id
557+
if ( db[ic].types[tid].enabled and not db[ic].types[tid].configmode.enabled ) then
558+
-- Retrieve new point count
559+
local OldPoints = Points[tid]
560+
SimplePointDisplay:GetPoints(ic, tid)
561+
if Points[tid] ~= OldPoints then
562+
-- Points have changed, flag for updating
563+
HasChanged = true
564+
PointsChanged[tid] = true
565+
end
564566
end
565567
end
566568
end

0 commit comments

Comments
 (0)