mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +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:
@@ -56,7 +56,7 @@ static const luaL_Reg w_FileData_functions[] =
|
||||
|
||||
extern "C" int luaopen_filedata(lua_State *L)
|
||||
{
|
||||
return luax_register_type(L, FileData::type, w_Data_functions, w_FileData_functions, nullptr);
|
||||
return luax_register_type(L, &FileData::type, w_Data_functions, w_FileData_functions, nullptr);
|
||||
}
|
||||
|
||||
} // filesystem
|
||||
|
||||
Reference in New Issue
Block a user