From 42d1b4f38921af356e8912cf995cf2b5f73c3cbe Mon Sep 17 00:00:00 2001 From: Nhiqill Date: Mon, 27 Jul 2020 16:36:56 -0400 Subject: [PATCH] Pop from front to avoid infinite loop with nested classes --- modules/mono/mono_gd/gd_mono_assembly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/mono_gd/gd_mono_assembly.cpp b/modules/mono/mono_gd/gd_mono_assembly.cpp index a170fd36e73..9dbeee57cec 100644 --- a/modules/mono/mono_gd/gd_mono_assembly.cpp +++ b/modules/mono/mono_gd/gd_mono_assembly.cpp @@ -425,7 +425,7 @@ GDMonoClass *GDMonoAssembly::get_object_derived_class(const StringName &p_class) while (!nested_classes.empty()) { GDMonoClass *current_nested = nested_classes.front()->get(); - nested_classes.pop_back(); + nested_classes.pop_front(); void *iter = nullptr;