mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 07:23:45 +00:00
Fixed incorrect color result when using ~TC() with number of last defined side
This commit is contained in:
parent
6eb6220360
commit
36be1ce21e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user