aboutsummaryrefslogtreecommitdiff
path: root/scripts/load_turrets.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-14 00:06:52 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-14 00:06:52 +0100
commit90af765b430e3a75daa9b2b4d0343ae58ad5c33d (patch)
tree024e803ce9b7476ed310fc156b54eb5ebced3c4f /scripts/load_turrets.gd
parent7cb4290601010459b09376396c7833ec391c25bf (diff)
secret work
Diffstat (limited to 'scripts/load_turrets.gd')
-rw-r--r--scripts/load_turrets.gd2
1 files changed, 1 insertions, 1 deletions
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