From 25c4667a0508f46c973905679abebc2e253cc6c8 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 31 Mar 2024 16:20:08 +0200 Subject: [PATCH] Fix issue and code style --- src/sms.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sms.gd b/src/sms.gd index 4ec2feb..7ab0d40 100644 --- a/src/sms.gd +++ b/src/sms.gd @@ -130,15 +130,15 @@ func get_scene_collection_list(type: CoreTypes.SceneType) -> Array[Node]: var list: Array[Node] = [] for scene in scenes: if scenes[scene]["type"] == type: - list.append(scene) + list.append(scenes[scene]["class"]) return list # Return scene count in some scene collection func get_scene_collection_count(type: CoreTypes.SceneType) -> int: var amount: int = 0 for scene in scenes: - if scene[scene]["type"] == type: - amount = amount+1 + if scenes[scene]["type"] == type: + amount += 1 return amount # Return scene existance & scene collection