Skip to content

Commit

Permalink
Add some [[fallthrough]];.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Jan 23, 2024
1 parent 69379b9 commit 88343d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/graphical/menu/widgets/checkbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ void cCheckBox::draw (SDL_Surface& destination, const cBox<cPosition>& clipRect)
case eCheckBoxType::HudIndex_01:
case eCheckBoxType::HudIndex_02:
textDesty = 7;
[[fallthrough]];
case eCheckBoxType::HudIndex_10:
case eCheckBoxType::HudIndex_11:
case eCheckBoxType::HudIndex_12:
case eCheckBoxType::HudChat:
if (textDesty != 7) textDesty = 6;
[[fallthrough]];
case eCheckBoxType::HudIndex_20:
case eCheckBoxType::HudIndex_21:
case eCheckBoxType::HudIndex_22:
Expand Down

0 comments on commit 88343d4

Please sign in to comment.