Merge pull request #49624 from nekomatata/fix-sub-resource-cache
Fix sub-resource storing the wrong index in cache
This commit is contained in:
commit
1cc6385858
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue