diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-09 20:06:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-09 20:06:49 +0200 |
commit | 45c5564c9be3561226374d6cc5dafc282fd5d402 (patch) | |
tree | ee29e4c0f4037be230c24b509e2554d991d14ad3 /serialize | |
parent | 2f4f330162035341b99374135b6e52e8278b16be (diff) |
wa2
Diffstat (limited to 'serialize')
-rw-r--r-- | serialize/savegame.cpp | 6 |
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> |