diff --git a/src/musikcube/app/overlay/PluginOverlay.cpp b/src/musikcube/app/overlay/PluginOverlay.cpp index 89a2380ce..88bc9ad82 100644 --- a/src/musikcube/app/overlay/PluginOverlay.cpp +++ b/src/musikcube/app/overlay/PluginOverlay.cpp @@ -213,20 +213,15 @@ class SchemaAdapter: public ScrollAdapterBase { auto entry = schema->At(index); switch (entry->type) { case ISchema::Type::Bool: - ShowBoolOverlay(reinterpret_cast(entry)); - break; + return ShowBoolOverlay(reinterpret_cast(entry)); case ISchema::Type::Int: - ShowIntOverlay(reinterpret_cast(entry)); - break; + return ShowIntOverlay(reinterpret_cast(entry)); case ISchema::Type::Double: - ShowDoubleOverlay(reinterpret_cast(entry)); - break; + return ShowDoubleOverlay(reinterpret_cast(entry)); case ISchema::Type::String: - ShowStringOverlay(reinterpret_cast(entry)); - break; + return ShowStringOverlay(reinterpret_cast(entry)); case ISchema::Type::Enum: - ShowEnumOverlay(reinterpret_cast(entry)); - break; + return ShowEnumOverlay(reinterpret_cast(entry)); } }