fix: remove invalid StringName cast from dictionary get

This commit is contained in:
2026-07-03 18:28:06 +02:00
parent 8049c52e0f
commit 0dfaa06f9c
+1 -1
View File
@@ -118,7 +118,7 @@ func _try_get_resource_target(npc: SimNPC, task: String) -> Variant:
"gather_food": &"gather_food",
"gather_wood": &"gather_wood"
}
var action_id := action_map.get(task) as StringName
var action_id = action_map.get(task)
if action_id == null:
return null