summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-09 20:06:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-09 20:06:49 +0200
commit45c5564c9be3561226374d6cc5dafc282fd5d402 (patch)
treeee29e4c0f4037be230c24b509e2554d991d14ad3
parent2f4f330162035341b99374135b6e52e8278b16be (diff)
wa2
-rw-r--r--serialize/savegame.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/serialize/savegame.cpp b/serialize/savegame.cpp
index 4f21a0ed..5808dc65 100644
--- a/serialize/savegame.cpp
+++ b/serialize/savegame.cpp
@@ -822,16 +822,18 @@ struct reader final : visitor_<reader, false>
generic_scenery_proto p;
visit_scenery_proto(p, f);
obj.subtype = move(p);
- break;
+ goto ok;
}
case scenery_type::door: {
door_scenery_proto p;
visit_scenery_proto(p, f);
obj.subtype = move(p);
- break;
+ goto ok;
}
}
fm_throw("invalid sc_type {}"_cf, (int)sc_type);
+ok:
+ void();
}
template<typename Obj, typename Proto, typename Header>