Skip to content

Commit

Permalink
fix nil cap index error
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Jul 7, 2024
1 parent 520965e commit 4a6428f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compat/game21/lua_runtime/style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ return function(game)
style.set_cap_color(2)
end
env.s_setCapColorByIndex = function(index)
index = index or 0
style.set_cap_color(4 + index)
end
env.s_getMainColor = function()
Expand Down

0 comments on commit 4a6428f

Please sign in to comment.