[Fix] Delete a hook that shouldn't be there for some reason it get's stuck.

[Fix] Makefile infinate loop.
This commit is contained in:
Allanis 2013-06-01 19:49:14 +01:00
parent cec46124f8
commit d0171998c4
2 changed files with 2 additions and 2 deletions

View File

@ -92,5 +92,4 @@ clean:
@(cd ../utils/mkspr; $(MAKE) clean)
@echo -e "\tCleaning Lua"
@(cd ../lib/lua; $(MAKE) clean)
@(cd ../lib/pluto; $(MAKE) clean)

View File

@ -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];