From 63b2f69c7f5f3c885796e5ee4642acc6e40c4077 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 (cherry picked from commit 604bd754389c9f0ba369eec285dfcbc6777d0dd9) --- 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 7471ab42412..5fa368e4815 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -896,6 +896,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() {