Fix an old-style cast.
This commit is contained in:
parent
78744fa36c
commit
539b1df6ce
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ bool mapbuilder::visit(size_t, team&, side_actions&, side_actions::iterator itor
|
|||
bool mapbuilder::pre_visit_team(size_t team_index, team&, side_actions& sa)
|
||||
{
|
||||
//Reset spent gold to zero, it'll be recalculated during the map building
|
||||
if( resources::controller->current_side() == (int)team_index+1)
|
||||
if( resources::controller->current_side() == static_cast<int>(team_index)+1)
|
||||
sa.reset_gold_spent();
|
||||
|
||||
return !sa.hidden();
|
||||
|
|
Loading…
Add table
Reference in a new issue