fix: remove invalid StringName cast from dictionary get
This commit is contained in:
@@ -118,7 +118,7 @@ func _try_get_resource_target(npc: SimNPC, task: String) -> Variant:
|
|||||||
"gather_food": &"gather_food",
|
"gather_food": &"gather_food",
|
||||||
"gather_wood": &"gather_wood"
|
"gather_wood": &"gather_wood"
|
||||||
}
|
}
|
||||||
var action_id := action_map.get(task) as StringName
|
var action_id = action_map.get(task)
|
||||||
if action_id == null:
|
if action_id == null:
|
||||||
return null
|
return null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user