Remove an old-style-cast.

This commit is contained in:
Mark de Wever 2012-07-22 17:15:30 +00:00
parent 1edff828c5
commit c6de6fa588

View file

@ -352,7 +352,9 @@ hotkey::ACTION_STATE editor_controller::get_action_state(hotkey::HOTKEY_COMMAND
return ACTION_STATELESS;
case editor::AREA:
case editor::SIDE:
return (size_t)index == gui_->playing_team() ? ACTION_ON : ACTION_OFF;
return static_cast<size_t>(index) == gui_->playing_team()
? ACTION_ON
: ACTION_OFF;
}
return ACTION_ON;
default: