Remove an old-style-cast.
This commit is contained in:
parent
1edff828c5
commit
c6de6fa588
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue