mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 15:12:23 +01:00
parent
17345404ba
commit
6929206bc2
@ -31,8 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
int LuaVoxelManip::gc_object(lua_State *L)
|
||||
{
|
||||
LuaVoxelManip *o = *(LuaVoxelManip **)(lua_touserdata(L, 1));
|
||||
if (!o->is_mapgen_vm)
|
||||
delete o;
|
||||
delete o;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -319,7 +318,8 @@ LuaVoxelManip::LuaVoxelManip(Map *map)
|
||||
|
||||
LuaVoxelManip::~LuaVoxelManip()
|
||||
{
|
||||
delete vm;
|
||||
if (!is_mapgen_vm)
|
||||
delete vm;
|
||||
}
|
||||
|
||||
// LuaVoxelManip()
|
||||
|
Loading…
Reference in New Issue
Block a user