From 90af765b430e3a75daa9b2b4d0343ae58ad5c33d Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Fri, 14 Jan 2022 00:06:52 +0100 Subject: secret work --- scripts/load_turrets.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/load_turrets.gd') diff --git a/scripts/load_turrets.gd b/scripts/load_turrets.gd index 3c9f378..ba2e198 100644 --- a/scripts/load_turrets.gd +++ b/scripts/load_turrets.gd @@ -25,7 +25,7 @@ func get_base_turrets(): var flag = true for oth in info.values(): if oth.name == turr.name: continue - if turr.name in oth.upgrades: + if turr.name in oth.get("upgrades", {}): flag = false if flag: results.append(turr) return results -- cgit v1.2.3-54-g00ecf