mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-07-02 23:46:27 +03:00
fix(ui): fix typo in FrameScript_GetColor
This commit is contained in:
parent
f525e600a2
commit
6c76720c04
@ -444,7 +444,7 @@ void FrameScript_GetColor(lua_State* L, int32_t idx, CImVector& color) {
|
|||||||
|
|
||||||
float a = 1.0f;
|
float a = 1.0f;
|
||||||
if (lua_isnumber(L, idx + 3)) {
|
if (lua_isnumber(L, idx + 3)) {
|
||||||
a = lua_tonumber(L, idx + 2);
|
a = lua_tonumber(L, idx + 3);
|
||||||
a = std::max(0.0f, std::min(a, 1.0f));
|
a = std::max(0.0f, std::min(a, 1.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user