[funexpected] clear missed remaps on deinitialization, fixes godotengine/godot#34221

(cherry picked from commit 604bd75438)
This commit is contained in:
Yakov Borevich 2020-08-30 22:44:39 +03:00 committed by Rémi Verschelde
parent 727bce727b
commit 63b2f69c7f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -896,6 +896,9 @@ void ResourceLoader::load_translation_remaps() {
void ResourceLoader::clear_translation_remaps() { void ResourceLoader::clear_translation_remaps() {
translation_remaps.clear(); translation_remaps.clear();
while (remapped_list.first() != nullptr) {
remapped_list.remove(remapped_list.first());
}
} }
void ResourceLoader::load_path_remaps() { void ResourceLoader::load_path_remaps() {