about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index f7b11e81..79ef8e1a 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -291,7 +291,7 @@ void player_core::tick()
 
 		// release hook		
 		hook_tick++;
-		if(hook_tick > SERVER_TICK_SPEED*2)
+		if(hooked_player != -1 && hook_tick > SERVER_TICK_SPEED*2)
 		{
 			hooked_player = -1;
 			hook_state = HOOK_RETRACTED;