diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-21 12:42:51 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-21 17:58:16 +0100 |
commit | fecef610262aaa492f25e764737f10911401be90 (patch) | |
tree | e5e899d61562ee0fd8707ba45643bc03efe68bd4 /serialize | |
parent | d7f75c614a805aa18aff53e4de98d9457cb02a89 (diff) |
d
Diffstat (limited to 'serialize')
-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); } |