Commit a5acc855 authored by Simpy's avatar Simpy 🐹

fix bg dt error: invalid format (width or precision too long)

parent e3f03e52
......@@ -41,7 +41,8 @@ function DT:UPDATE_BATTLEFIELD_SCORE()
for i=1, GetNumBattlefieldScores() do
local name = GetBattlefieldScore(i)
if name == E.myname then
self.text:SetFormattedText(displayString, dataStrings[pointIndex], E:ShortValue(select(pointIndex, GetBattlefieldScore(i))))
local val = select(pointIndex, GetBattlefieldScore(i))
self.text:SetFormattedText(displayString, dataStrings[pointIndex], E:ShortValue(val))
break
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment