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>2009-01-12 21:44:13 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2009-01-12 21:44:13 +0000
commit70dea7e39874b662bd1855c0038671622df89b7d (patch)
tree05b016d81afe1290f019c30fd5b0d67351d792b6 /src/game/server/hooks.cpp
parent123c5b5b9962f4af04ae2a0ca72fec668a1bea1e (diff)
downloadzcatch-70dea7e39874b662bd1855c0038671622df89b7d.tar.gz
zcatch-70dea7e39874b662bd1855c0038671622df89b7d.zip
fixed bug that crashes the server if settings tunings in the server config
Diffstat (limited to 'src/game/server/hooks.cpp')
-rw-r--r--src/game/server/hooks.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp
index d557f99f..951e6e67 100644
--- a/src/game/server/hooks.cpp
+++ b/src/game/server/hooks.cpp
@@ -27,6 +27,10 @@ TUNING_PARAMS tuning;
 
 static void check_pure_tuning()
 {
+	// might not be created yet during start up
+	if(!game.controller)
+		return;
+	
 	if(	strcmp(game.controller->gametype, "DM")==0 ||
 		strcmp(game.controller->gametype, "TDM")==0 ||
 		strcmp(game.controller->gametype, "CTF")==0)