diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-07 06:34:56 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-07 06:34:56 +0100 |
commit | 1032fb9f541932b04c7082c5f0f38f283949db94 (patch) | |
tree | 097da12a424a302e3d1151dea75d48a4b8df9efb | |
parent | e611d6c12085d32c2e024bf1b544d4c32bae1738 (diff) |
fix missing return statement
-rw-r--r-- | editor/tile-editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index 03a1ee47..9013536f 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -133,15 +133,15 @@ tile_image_proto tile_editor::get_selected() { switch (_selection_mode) { + default: + fm_warn_once("invalid editor mode '%u'", (unsigned)_selection_mode); + [[fallthrough]]; case sel_none: return {}; case sel_tile: return _selected_tile; case sel_perm: return get_selected_perm(); - default: - fm_warn_once("invalid editor mode '%u'", (unsigned)_selection_mode); - break; } } |