[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:
parent
cec46124f8
commit
d0171998c4
@ -92,5 +92,4 @@ clean:
|
||||
@(cd ../utils/mkspr; $(MAKE) clean)
|
||||
@echo -e "\tCleaning Lua"
|
||||
@(cd ../lib/lua; $(MAKE) clean)
|
||||
@(cd ../lib/pluto; $(MAKE) clean)
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user