Fix bug - prevent firing of staff while being picked up

This commit is contained in:
zsilencer 2016-10-18 13:20:45 -06:00
parent 541ae91d67
commit 986c2ab97e
1 changed files with 4 additions and 0 deletions

View File

@ -474,6 +474,10 @@ void game_command_fire_staff_member(int *eax, int *ebx, int *ecx, int *edx, int
*ebx = MONEY32_UNDEFINED;
return;
}
if (peep->state == PEEP_STATE_PICKED) {
*ebx = MONEY32_UNDEFINED;
return;
}
remove_peep_from_ride(peep);
peep_sprite_remove(peep);
}