summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimOkGamer <salnikov.mine@yandex.ru>2017-10-15 04:43:02 +0300
committerDimOkGamer <salnikov.mine@yandex.ru>2017-10-15 04:43:02 +0300
commitb137bfd7ff8845a511347197a213bbc4c6caa2e5 (patch)
treee0c9b66d89f3d88c1d1c2bee27a9054630f064f3
parentba9486a4d30f1bef11ff3629af67a87c6264f569 (diff)
Fix deleting localization remap option.
-rw-r--r--editor/project_settings_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index 91ef9e36f3..723d7b14ff 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -1189,7 +1189,7 @@ void ProjectSettingsEditor::_translation_res_option_delete(Object *p_item, int p
ERR_FAIL_COND(!remaps.has(key));
PoolStringArray r = remaps[key];
- ERR_FAIL_INDEX(idx, remaps.size());
+ ERR_FAIL_INDEX(idx, r.size());
r.remove(idx);
remaps[key] = r;