diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-21 14:36:35 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-21 14:37:16 +0100 |
commit | 88cf92a36a6de395cdc3ed3f22e0b45c3eb2b8b9 (patch) | |
tree | 0cf0318de1f9757817b210b7928ec05c31028a01 /serialize/savegame.cpp | |
parent | 84ac66e790da0211f2ad3af38a5dc869a32ca242 (diff) |
serialize: fix warning
Diffstat (limited to 'serialize/savegame.cpp')
-rw-r--r-- | serialize/savegame.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/serialize/savegame.cpp b/serialize/savegame.cpp index 6442ba6f..bc2e2f5f 100644 --- a/serialize/savegame.cpp +++ b/serialize/savegame.cpp @@ -164,6 +164,7 @@ struct visitor_ break; case object_type::none: case object_type::COUNT: + default: break; } if (!obj.atlas) @@ -197,8 +198,9 @@ struct visitor_ case object_type::COUNT: case object_type::none: break; + default: + fm_abort("invalid object type '%d'", (int)type); } - fm_abort("invalid object type '%d'", (int)type); } template<typename F> |