From 8c37dc0c5e6f4e588d37f5900764125716bc7f77 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 9 Jan 2015 21:27:53 +0100 Subject: select a target using a structure instead of an index Signed-off-by: Olivier Gayot --- menuchoixpersos.c | 1 + 1 file changed, 1 insertion(+) (limited to 'menuchoixpersos.c') diff --git a/menuchoixpersos.c b/menuchoixpersos.c index 0ce0360..3eb77a9 100644 --- a/menuchoixpersos.c +++ b/menuchoixpersos.c @@ -16,6 +16,7 @@ static void init_team_players(struct team_t *team, bool left, chr->name = "Player"; chr->team = team; + chr->idx = i; chr->cpu = team->cpu; chr->class_ = classes[i]; chr->alive = true; -- cgit v1.2.3