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