about summary refs log tree commit diff
path: root/src/game/server/hooks.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-24 09:03:49 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-24 09:03:49 +0000
commiteb21e9d6bb772c6fba533bfe4b421dc7efe181b1 (patch)
tree0d94fb38f7244e2495527d66d8e5ae2c9e155da2 /src/game/server/hooks.cpp
parentd9d37b945ee5796553794ef33249c22490494391 (diff)
downloadzcatch-eb21e9d6bb772c6fba533bfe4b421dc7efe181b1.tar.gz
zcatch-eb21e9d6bb772c6fba533bfe4b421dc7efe181b1.zip
cleaned up the code a bit more. pooling of character and player objects with reusable macros. fixed crashing when changing maps and a couple of other bugs
Diffstat (limited to 'src/game/server/hooks.cpp')
-rw-r--r--src/game/server/hooks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp
index 0cd6d6e1..494f4f62 100644
--- a/src/game/server/hooks.cpp
+++ b/src/game/server/hooks.cpp
@@ -73,7 +73,7 @@ void mods_client_enter(int client_id)
 
 void mods_connected(int client_id)
 {
-	game.players[client_id] = new PLAYER(client_id);
+	game.players[client_id] = new(client_id) PLAYER(client_id);
 	//game.players[client_id].init(client_id);
 	//game.players[client_id].client_id = client_id;