This commit is contained in:
aozhiwei 2019-11-06 15:02:49 +08:00
parent d3654b5b69
commit b012e23bfa

View File

@ -2376,7 +2376,9 @@ void Human::OnDie()
member->room->OnHumanDie(this);
member->SyncAroundPlayers(__FILE__, __LINE__, __func__);
member->SendGameOver();
room->xtimer.DeleteTimer(member->downed_timer);
if (member->downed_timer) {
room->xtimer.DeleteTimer(member->downed_timer);
}
member->downed_timer = nullptr;
}
}