Skip to content

Commit b2175d2

Browse files
authored
Ensure state has script before checking script (#841)
1 parent 08b903f commit b2175d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/dialogue_manager/dialogue_manager.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ func _thing_has_method(thing, method: String, args: Array) -> bool:
13561356
if thing.has_method(method):
13571357
return true
13581358

1359-
if thing.get_script().resource_path.ends_with(".cs"):
1359+
if thing.get_script() and thing.get_script().resource_path.ends_with(".cs"):
13601360
# If we get this far then the method might be a C# method with a Task return type
13611361
return _get_dotnet_dialogue_manager().ThingHasMethod(thing, method, args)
13621362

0 commit comments

Comments
 (0)