mirror of
https://github.com/love2d/love.git
synced 2026-08-20 12:40:20 +02:00
fix buffer debugname is optional
This commit is contained in:
@@ -1576,10 +1576,11 @@ static void luax_optbuffersettings(lua_State *L, int idx, Buffer::Settings &sett
|
|||||||
|
|
||||||
lua_getfield(L, idx, "usage");
|
lua_getfield(L, idx, "usage");
|
||||||
settings.dataUsage = luax_optdatausage(L, -1, settings.dataUsage);
|
settings.dataUsage = luax_optdatausage(L, -1, settings.dataUsage);
|
||||||
|
lua_pop(L, 1);
|
||||||
|
|
||||||
lua_getfield(L, idx, "debugname");
|
lua_getfield(L, idx, "debugname");
|
||||||
settings.debugName = luax_checkstring(L, -1);
|
if (!lua_isnoneornil(L, -1))
|
||||||
|
settings.debugName = luax_checkstring(L, -1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user