mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-12 08:32:07 +00:00
C-style cast cleanup.
This commit is contained in:
parent
e56c3a86f2
commit
e3402ac112
@ -2165,7 +2165,7 @@ int ai::rate_terrain(const unit& u, const gamemap::location& loc)
|
||||
if(map_.is_village(terrain)) {
|
||||
const int owner = village_owner(loc,teams_);
|
||||
|
||||
if(owner+1 == (int)team_num_) {
|
||||
if(owner + 1 == static_cast<int>(team_num_)) {
|
||||
rating += friendly_village_value;
|
||||
} else if(owner == -1) {
|
||||
rating += neutral_village_value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user