From 604bd754389c9f0ba369eec285dfcbc6777d0dd9 Mon Sep 17 00:00:00 2001 From: Yakov Borevich Date: Sun, 30 Aug 2020 22:44:39 +0300 Subject: [PATCH] [funexpected] clear missed remaps on deinitialization, fixes godotengine/godot#34221 --- core/io/resource_loader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 534f3e44dee..8b3a1f66374 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -999,6 +999,9 @@ void ResourceLoader::load_translation_remaps() { void ResourceLoader::clear_translation_remaps() { translation_remaps.clear(); + while (remapped_list.first() != nullptr) { + remapped_list.remove(remapped_list.first()); + } } void ResourceLoader::load_path_remaps() {