mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Fix out of range crash on remapping files
This commit is contained in:
@@ -1227,7 +1227,7 @@ void ProjectSettingsEditor::_translation_res_option_changed() {
|
||||
ERR_FAIL_COND(!remaps.has(key));
|
||||
PoolStringArray r = remaps[key];
|
||||
ERR_FAIL_INDEX(idx, r.size());
|
||||
if (translation_locales_idxs_remap.size() > 0) {
|
||||
if (translation_locales_idxs_remap.size() > which) {
|
||||
r.set(idx, path + ":" + langs[translation_locales_idxs_remap[which]]);
|
||||
} else {
|
||||
r.set(idx, path + ":" + langs[which]);
|
||||
|
||||
Reference in New Issue
Block a user