aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/LocaleButton.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-03-03 17:39:08 +0100
committer hop311 <hop3114@gmail.com>2024-03-03 17:39:08 +0100
commite2077a0d93be8b2dd48f1ee680809420f1f690d7 (patch)
treebacc8f4094eff5514a94b3852e9cec9c28391669 /game/src/Game/LocaleButton.gd
parent9ee1940ac3d15aa4c0a87b84d1c4ab8958184f63 (diff)
Add types to GDScript for-loop variablesfor-loop-types
Diffstat (limited to 'game/src/Game/LocaleButton.gd')
-rw-r--r--game/src/Game/LocaleButton.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/src/Game/LocaleButton.gd b/game/src/Game/LocaleButton.gd
index e315330..8dc6b06 100644
--- a/game/src/Game/LocaleButton.gd
+++ b/game/src/Game/LocaleButton.gd
@@ -53,7 +53,7 @@ func load_setting(file : ConfigFile) -> void:
reset_setting()
func _select_locale_by_string(locale : String) -> bool:
- for idx in item_count:
+ for idx : int in item_count:
if get_item_metadata(idx) == locale:
selected = idx
return true