Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
fixes #324, protect from nil or >9 standingID in RepString_Update
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Oct 14, 2019
1 parent 43f2a96 commit c2a96e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Objects/STATUSBTN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ function STATUSBTN:repstrings_Update(repGainedString)
local colors = {}
local headerOverride

if not standingID then --not sure if we will ever be in a position where standingID comes back as nil, but if so, protect for it.
standingID = 0
elseif standingID > 9 then --protect just in case standingID comes back greater than 9. I'm not sure if this will ever trip, but it's a safety thing.
standingID = 9
end

if standingID == 8 then
min = 0
end
Expand Down

0 comments on commit c2a96e9

Please sign in to comment.