From d6ca054935ea2aff836f848becb9c163d35eb2d0 Mon Sep 17 00:00:00 2001 From: Aryan Baburajan Date: Tue, 2 Apr 2024 12:53:31 +0530 Subject: [PATCH] GMLCompiler: GML compile compatibility for ScrollableContainerWidget --- Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp index e6b55903d89..21b3ce5cb01 100644 --- a/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/GMLCompiler/main.cpp @@ -325,7 +325,7 @@ static ErrorOr generate_loader_for_object(GUI::GML::Object const& gml_obje // Handle the current two special cases of child adding. if (gml_object.name() == "GUI::ScrollableContainerWidget"sv) - TRY(append(child_generator, "static_ptr_cast(@object_name@)->set_widget(*@child_variable_name@);")); + TRY(append(child_generator, "static_ptr_cast(@object_name@)->set_widget(@child_variable_name@);")); else if (gml_object.name() == "GUI::TabWidget"sv) TRY(append(child_generator, "static_ptr_cast(@object_name@)->add_widget(*@child_variable_name@);")); else