Null player target when switching fighters.

This commit is contained in:
Steve 2017-06-04 09:31:36 +01:00
parent 77c9d221e7
commit 633cd7a9ff
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ void initPlayer(void)
player->flags |= EF_NO_HEALTH_BAR;
player->flags &= ~EF_IMMORTAL;
player->target = NULL;
game.stats[STAT_EPIC_KILL_STREAK] = MAX(game.stats[STAT_EPIC_KILL_STREAK], battle.stats[STAT_EPIC_KILL_STREAK]);
battle.stats[STAT_EPIC_KILL_STREAK] = 0;