mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +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:
@@ -110,7 +110,7 @@ static const luaL_Reg w_SoundData_functions[] =
|
||||
|
||||
extern "C" int luaopen_sounddata(lua_State *L)
|
||||
{
|
||||
int ret = luax_register_type(L, SoundData::type, w_Data_functions, w_SoundData_functions, nullptr);
|
||||
int ret = luax_register_type(L, &SoundData::type, w_Data_functions, w_SoundData_functions, nullptr);
|
||||
|
||||
luax_gettypemetatable(L, SoundData::type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user