From fecef610262aaa492f25e764737f10911401be90 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 21 Mar 2024 12:42:51 +0100 Subject: d --- serialize/savegame.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'serialize') 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_ switch (type) { - case atlas_type::ground: name = reinterpret_cast(atlas)->name(); goto ok; - case atlas_type::wall: name = reinterpret_cast(atlas)->name(); goto ok; + case atlas_type::ground: name = reinterpret_cast(atlas)->name(); break; + case atlas_type::wall: name = reinterpret_cast(atlas)->name(); break; case atlas_type::vobj: case atlas_type::anim: name = reinterpret_cast(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); } -- cgit v1.2.3