Skip to content

Commit

Permalink
Fixed incorrect color result when using ~TC() with number of last def…
Browse files Browse the repository at this point in the history
…ined side
  • Loading branch information
Vultraz committed Oct 13, 2016
1 parent 6eb6220 commit 36be1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image_modifications.cpp
Expand Up @@ -620,7 +620,7 @@ REGISTER_MOD_PARSER(TC, args)
<< ") passed to the ~TC() function\n";
return nullptr;
}
else if (side_n < static_cast<int>(image::get_team_colors().size())) {
else if (side_n <= static_cast<int>(image::get_team_colors().size())) {
team_color = image::get_team_colors()[side_n - 1];
}
else {
Expand Down

0 comments on commit 36be1ce

Please sign in to comment.