aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-15 01:00:16 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:42 +0200
commit4b8e4dae589cabef054991c08eb2cd47c867994a (patch)
treeeb874a25245fa0a287ce5c8454887d7a88cca1df /src/game.cpp
parent0754f2a7af831922e26c12e707dfb6724897322f (diff)
downloadminetest-4b8e4dae589cabef054991c08eb2cd47c867994a.tar.gz
minetest-4b8e4dae589cabef054991c08eb2cd47c867994a.tar.bz2
minetest-4b8e4dae589cabef054991c08eb2cd47c867994a.zip
Tool definition transfer to client
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index bf601dd21..ae45e5146 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -660,6 +660,8 @@ void the_game(
server = new Server(map_dir, configpath);
server->start(port);
}
+
+ { // Client scope
/*
Create client
@@ -2341,8 +2343,11 @@ void the_game(
gui_shuttingdowntext->remove();*/
}
+ } // Client scope (must be destructed before destructing *def and tsrc
+
delete tooldef;
delete tsrc;
+ delete nodedef;
}