diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-26 18:34:33 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-26 21:30:56 +0200 |
commit | afdb73b18329d1e135340ac4a7aab952648fada8 (patch) | |
tree | 483972316bf46ac25bbbc180825acb8a3c68ba0b /editor | |
parent | e679da407d43b581afaf0539acea1143c022b245 (diff) |
b
Diffstat (limited to 'editor')
-rw-r--r-- | editor/inspect-types.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/inspect-types.cpp b/editor/inspect-types.cpp index 520f0f3c..cb85f574 100644 --- a/editor/inspect-types.cpp +++ b/editor/inspect-types.cpp @@ -298,6 +298,9 @@ bool inspect_object_subtype(object& x) const auto type = x.type(); switch (type) { + case object_type::none: + case object_type::COUNT: + break; case object_type::scenery: { auto& sc = static_cast<scenery&>(x); const auto sc_type = sc.scenery_type(); @@ -315,9 +318,6 @@ bool inspect_object_subtype(object& x) } case object_type::critter: return inspect_type(static_cast<critter&>(x), inspect_intent_t{}); case object_type::light: return inspect_type(static_cast<light&>(x), inspect_intent_t{}); - case object_type::none: - case object_type::COUNT: - break; } fm_warn_once("unknown object subtype '%d'", (int)type); return false; |