mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Automatically deduce the type in luax_checktype, luax_getmodule, luax_optmodule and luax_totype
--HG-- branch : dynamiccore2
This commit is contained in:
@@ -351,7 +351,7 @@ int w_getPosition(lua_State *L)
|
||||
|
||||
int w_setIcon(lua_State *L)
|
||||
{
|
||||
image::ImageData *i = luax_checktype<image::ImageData>(L, 1, image::ImageData::type);
|
||||
image::ImageData *i = luax_checktype<image::ImageData>(L, 1);
|
||||
luax_pushboolean(L, instance()->setIcon(i));
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user