summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 17:03:33 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 17:10:29 +0100
commite3b507957242134019dd12b4be73350f0ead6475 (patch)
tree3275d3627df87b4c8b81c9c83f9032924fc63092 /players.c
parent921cea1f77addd23e545ac309d32f2d0cabf551b (diff)
fix invalid write in new_enemy_team and in Fjouer
in the function `new_enemy_team()', we used to loop through the enemies while the incrementer is less or equal to the count. However, since there are `count' elements, we need to stop the loop when the incrementer gets equal to `count' the same bug is present in `Fjouer()' when checking if the player wins. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'players.c')
0 files changed, 0 insertions, 0 deletions