diff options
Diffstat (limited to 'serialize/savegame.cpp')
-rw-r--r-- | serialize/savegame.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/serialize/savegame.cpp b/serialize/savegame.cpp index bc2e2f5f..d5bbb914 100644 --- a/serialize/savegame.cpp +++ b/serialize/savegame.cpp @@ -447,18 +447,15 @@ struct writer final : visitor_<writer> switch (type) { - case atlas_type::ground: name = reinterpret_cast<const ground_atlas*>(atlas)->name(); goto ok; - case atlas_type::wall: name = reinterpret_cast<const wall_atlas*>(atlas)->name(); goto ok; + case atlas_type::ground: name = reinterpret_cast<const ground_atlas*>(atlas)->name(); break; + case atlas_type::wall: name = reinterpret_cast<const wall_atlas*>(atlas)->name(); break; case atlas_type::vobj: case atlas_type::anim: name = reinterpret_cast<const anim_atlas*>(atlas)->name(); - goto ok; - case atlas_type::none: break; + default: + fm_abort("invalid atlas type '%d'", (int)type); } - fm_abort("invalid atlas type '%d'", (int)type); - -ok: do_visit(intern_string(name), f); } |