Merge pull request #49624 from nekomatata/fix-sub-resource-cache

Fix sub-resource storing the wrong index in cache
This commit is contained in:
Rémi Verschelde 2021-06-15 20:38:34 +02:00 committed by GitHub
commit 1cc6385858
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -575,6 +575,7 @@ Error ResourceLoaderText::load() {
int_resources[id] = res; //always assign int resources
if (do_assign && cache_mode != ResourceFormatLoader::CACHE_MODE_IGNORE) {
res->set_path(path, cache_mode == ResourceFormatLoader::CACHE_MODE_REPLACE);
res->set_subindex(id);
}
if (progress && resources_total > 0) {