Skip to content

Commit

Permalink
Merge pull request #2 from HoratioVex/original-bugs-fixed
Browse files Browse the repository at this point in the history
wrong bounds check
  • Loading branch information
Keriew authored Jan 28, 2020
2 parents e0376f7 + e324a2d commit 3292581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/figure/formation_legion.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ int formation_legion_curse(void)
{
formation *best_legion = 0;
int best_legion_weight = 0;
for (int i = 1; i <= MAX_FORMATIONS; i++) {
for (int i = 1; i < MAX_FORMATIONS; i++) {
formation *m = formation_get(i);
if (m->in_use == 1 && m->is_legion) {
int weight = m->num_figures;
Expand Down

0 comments on commit 3292581

Please sign in to comment.