Fixed incorrect color result when using ~TC() with number of last defined side

This commit is contained in:
Charles Dang 2016-10-13 22:46:14 +11:00
parent 6eb6220360
commit 36be1ce21e

View File

@ -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 {