about summary refs log tree commit diff
path: root/src/game/gamecore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/gamecore.cpp')
-rw-r--r--src/game/gamecore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/gamecore.cpp b/src/game/gamecore.cpp
index c4a3392b..ccef8de8 100644
--- a/src/game/gamecore.cpp
+++ b/src/game/gamecore.cpp
@@ -395,7 +395,7 @@ void CHARACTER_CORE::tick(bool use_input)
 
 		// release hook		
 		hook_tick++;
-		if(hooked_player != -1 && hook_tick > SERVER_TICK_SPEED*2)
+		if(hooked_player != -1 && (hook_tick > SERVER_TICK_SPEED*2 || !world->characters[hooked_player]))
 		{
 			hooked_player = -1;
 			hook_state = HOOK_RETRACTED;