aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-01-21 12:15:33 +0100
committertpart <tpart120@proton.me>2025-01-21 12:15:33 +0100
commitfef391d70527bcd3d7b76cf921beeec488ff4b1c (patch)
treedc45a99999aaa7346289cf30ec24b30b1137e465 /client
parent03cbd71c2524928af6e1c5f52c27dc00af78602d (diff)
downloadhurrycurry-fef391d70527bcd3d7b76cf921beeec488ff4b1c.tar
hurrycurry-fef391d70527bcd3d7b76cf921beeec488ff4b1c.tar.bz2
hurrycurry-fef391d70527bcd3d7b76cf921beeec488ff4b1c.tar.zst
Fix remove at error message
Diffstat (limited to 'client')
-rw-r--r--client/translation_manager.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/translation_manager.gd b/client/translation_manager.gd
index aa9db87d..d45a153a 100644
--- a/client/translation_manager.gd
+++ b/client/translation_manager.gd
@@ -46,7 +46,8 @@ func _init() -> void:
func get_ini_dict(file_name: String, locale_path: String) -> Dictionary: # Dictionary[String, String]
var dict := {}
var lines := FileAccess.get_file_as_string(locale_path + file_name).split("\n", false)
- lines.remove_at(0)
+ if lines.size() > 0:
+ lines.remove_at(0)
for key in native_language_names.keys():
lines.append("c.settings.ui.language.%s = %s" % [key, native_language_names[key]])