From d0171998c4d91d8adbf25017fdd7c19f58af1233 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 1 Jun 2013 19:49:14 +0100 Subject: [PATCH] [Fix] Delete a hook that shouldn't be there for some reason it get's stuck. [Fix] Makefile infinate loop. --- bin/Makefile | 1 - src/hook.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/Makefile b/bin/Makefile index 5ed1e62..8319b12 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -92,5 +92,4 @@ clean: @(cd ../utils/mkspr; $(MAKE) clean) @echo -e "\tCleaning Lua" @(cd ../lib/lua; $(MAKE) clean) - @(cd ../lib/pluto; $(MAKE) clean) diff --git a/src/hook.c b/src/hook.c index 30c6214..0040dc7 100644 --- a/src/hook.c +++ b/src/hook.c @@ -42,7 +42,8 @@ static int hook_run(Hook* hook) { if(player_missions[i].id == hook->parent) break; if(i >= MISSION_MAX) { - WARN("Trying to run hook with parent not in player mission stack!"); + WARN("Trying to run hook with parent not in player mission stack: deleting"); + hook->delete = 1; // So delete it. return -1; } misn = &player_missions[i];