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