diff options
author | Yakov Borevich <j.borevich@gmail.com> | 2020-08-30 22:44:39 +0300 |
---|---|---|
committer | Yakov Borevich <j.borevich@gmail.com> | 2020-08-31 16:04:46 +0300 |
commit | 604bd754389c9f0ba369eec285dfcbc6777d0dd9 (patch) | |
tree | 652061cadd73de3a2b8d4340dafe2cfbfd73129b | |
parent | db5ea78b7bf85ddd9109fa4ac03a7178d446cb58 (diff) |
[funexpected] clear missed remaps on deinitialization, fixes godotengine/godot#34221
-rw-r--r-- | core/io/resource_loader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 534f3e44de..8b3a1f6637 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() { |