Fix crash when already dead lover tries to commit suicide

This commit is contained in:
nyuszika7h 2014-07-16 23:51:59 +02:00
parent 49c04e6dcc
commit e750fbae21

View File

@ -1234,6 +1234,8 @@ def del_player(cli, nick, forced_death = False, devoice = True, end_game = True)
for other in others:
if other not in var.list_players():
continue # already died somehow
if nick not in var.LOVERS[other]:
continue
var.LOVERS[other].remove(nick)
if var.ROLE_REVEAL:
role = var.get_reveal_role(other)