From 45c5564c9be3561226374d6cc5dafc282fd5d402 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 9 Apr 2024 20:06:49 +0200 Subject: wa2 --- serialize/savegame.cpp | 6 ++++-- 1 file 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_ 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 -- cgit v1.2.3