AP_Scripting: remove redundant memsets

Matches current generator behavior.
This commit is contained in:
Thomas Watson 2024-06-28 13:28:15 -05:00 committed by Andrew Tridgell
parent 837b17e82e
commit e66d2a1495
1 changed files with 0 additions and 1 deletions

View File

@ -21,7 +21,6 @@ int lua_new_Parameter(lua_State *L) {
// This chunk is the same as the auto generated constructor // This chunk is the same as the auto generated constructor
void *ud = lua_newuserdata(L, sizeof(Parameter)); void *ud = lua_newuserdata(L, sizeof(Parameter));
memset(ud, 0, sizeof(Parameter));
new (ud) Parameter(); new (ud) Parameter();
luaL_getmetatable(L, "Parameter"); luaL_getmetatable(L, "Parameter");
lua_setmetatable(L, -2); lua_setmetatable(L, -2);