diff --git a/scripts/settings.gd b/scripts/settings.gd index 75347416..9b835fcc 100644 --- a/scripts/settings.gd +++ b/scripts/settings.gd @@ -64,7 +64,7 @@ func _ready() -> void: temp_array.append(json_data[key][0]) else: set_from_file = false - if (len(json_data[key]) - 1) != len(UnitProfiles[key][2]): + if len(json_data[key]) < len(UnitProfiles[key][2]): log.info('Не удалось прочитать файл настроек %s, ошибка длинны массива' % settings_file) continue temp_array.append([])