mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-04 05:50:15 +00:00
[lua] Fix Color.index to return an integer instead of a number (fix #3159)
This commit is contained in:
parent
8d4941d86c
commit
9cf2ff782f
@ -295,7 +295,7 @@ int Color_get_gray(lua_State* L)
|
||||
int Color_get_index(lua_State* L)
|
||||
{
|
||||
auto color = get_obj<app::Color>(L, 1);
|
||||
lua_pushnumber(L, color->getIndex());
|
||||
lua_pushinteger(L, color->getIndex());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user