From e2077a0d93be8b2dd48f1ee680809420f1f690d7 Mon Sep 17 00:00:00 2001 From: hop311 Date: Sun, 3 Mar 2024 16:39:08 +0000 Subject: Add types to GDScript for-loop variables --- game/src/Game/LocaleButton.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/src/Game/LocaleButton.gd') 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 -- cgit v1.2.3-56-ga3b1