From 43d56bfefbcf6ba7f89f8b45a9367cc65bd6bcef Mon Sep 17 00:00:00 2001 From: Adrien Ufferte Date: Thu, 23 Oct 2025 13:45:02 +0200 Subject: [PATCH] Security --- resources/user/student_progression.gd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/user/student_progression.gd b/resources/user/student_progression.gd index 42e3666b..3c1804ca 100644 --- a/resources/user/student_progression.gd +++ b/resources/user/student_progression.gd @@ -42,8 +42,9 @@ func init_unlocks() -> void: } # Make sure that the first garden is always accessible - if unlocks[1]["look_and_learn"] == Status.Locked: - unlocks[1]["look_and_learn"] = Status.Unlocked + if unlocks.has(1): + if unlocks[1]["look_and_learn"] == Status.Locked: + unlocks[1]["look_and_learn"] = Status.Unlocked func ensure_data_integrity(data: Dictionary[int, Dictionary]) -> Dictionary: