diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-21 18:25:15 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-22 04:17:19 +0100 |
| commit | b1174fca2f52391fd6ce33b49f50a37a7ceac3aa (patch) | |
| tree | c0b961475df18515c92c875e2bd0f517864199a6 | |
| parent | b4165540245304a9ac7ece11feabe5907cf9d5f1 (diff) | |
fix warn
| -rw-r--r-- | serialize/savegame.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/serialize/savegame.cpp b/serialize/savegame.cpp index d5bbb914..7d40d9e3 100644 --- a/serialize/savegame.cpp +++ b/serialize/savegame.cpp @@ -797,14 +797,13 @@ struct reader final : visitor_<reader> f(id); switch (type) { + default: fm_throw("invalid atlas type {}"_cf, (int)type); case atlas_type::anim: a = loader.anim_atlas(get_atlas<atlas_type::anim>(id), {}, loader_policy::warn); return; case atlas_type::vobj: a = loader.vobj(get_atlas<atlas_type::vobj>(id)).atlas; return; case atlas_type::ground: case atlas_type::wall: case atlas_type::none: - break; } - fm_throw("invalid atlas type {}"_cf, (int)type); } template<typename F> |
