mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Pass Type to luax_register_type by pointer instead of reference
Since the type is passed to va_start, and apparently that's undefined behaviour if it's a reference. <Textmode> the best kind of behavior --HG-- branch : dynamiccore2
This commit is contained in:
@@ -2090,7 +2090,7 @@ static const luaL_Reg functions[] =
|
||||
|
||||
static int luaopen_drawable(lua_State *L)
|
||||
{
|
||||
return luax_register_type(L, Drawable::type, nullptr);
|
||||
return luax_register_type(L, &Drawable::type, nullptr);
|
||||
}
|
||||
|
||||
// Types for this module.
|
||||
|
||||
Reference in New Issue
Block a user