Skip to content

Commit 5df5ffc

Browse files
committed
fix: 修复战斗文字可能颜色报错的问题
1 parent 8e0d827 commit 5df5ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MY_CombatText/src/MY_CombatText.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ function CombatText.OnFrameRender()
550550
end
551551
end
552552
-- draw
553-
local r, g, b = unpack(v.col)
553+
local r, g, b = unpack(v.col or {255, 255, 255})
554554
if not COMBAT_TEXT_LEAVE[v.dwTargetID] or not v.object or not v.tPoint[1] then
555555
k:AppendCharacterID(v.dwTargetID, bTop, r, g, b, nAlpha, { 0, 0, 0, nLeft * COMBAT_TEXT_UI_SCALE, nTop * COMBAT_TEXT_UI_SCALE}, nFont, v.szText, 1, fScale)
556556
if v.object and v.object.nX then

0 commit comments

Comments
 (0)