diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-09 21:27:53 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-09 21:53:12 +0100 |
commit | 8c37dc0c5e6f4e588d37f5900764125716bc7f77 (patch) | |
tree | 7fbddeceef42e306142bdcda4c365fd8277fe955 /menuchoixpersos.c | |
parent | b4038deb223e309fe886c71b3765a7e82e65f9bb (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.c | 1 |
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; |