summaryrefslogtreecommitdiff
path: root/menuchoixpersos.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-09 21:27:53 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-09 21:53:12 +0100
commit8c37dc0c5e6f4e588d37f5900764125716bc7f77 (patch)
tree7fbddeceef42e306142bdcda4c365fd8277fe955 /menuchoixpersos.c
parentb4038deb223e309fe886c71b3765a7e82e65f9bb (diff)
select a target using a structure instead of an index
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'menuchoixpersos.c')
-rw-r--r--menuchoixpersos.c1
1 files changed, 1 insertions, 0 deletions
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;