summaryrefslogtreecommitdiffhomepage
path: root/serialize/savegame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'serialize/savegame.cpp')
-rw-r--r--serialize/savegame.cpp3
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>