Fix an old-style cast.

This commit is contained in:
Mark de Wever 2011-11-26 14:25:16 +00:00
parent 78744fa36c
commit 539b1df6ce

View file

@ -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();