fix: avoids crashes in case of input when room is run directly and interrupted; may look at updating room manager in the future
This commit is contained in:
committed by
Julian Murgia
parent
9e247a9218
commit
ff178541fc
@@ -72,4 +72,5 @@ func run(command_params: Array) -> int:
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
walking_object_node.stop_walking_now()
|
||||
if walking_object_node != null:
|
||||
walking_object_node.stop_walking_now()
|
||||
|
||||
@@ -73,5 +73,5 @@ func run(command_params: Array) -> int:
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
if not walking_object_node is ESCPlayer:
|
||||
if walking_object_node != null and not walking_object_node is ESCPlayer:
|
||||
walking_object_node.stop_walking_now()
|
||||
|
||||
@@ -62,5 +62,5 @@ func run(command_params: Array) -> int:
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
if not walking_object_node is ESCPlayer:
|
||||
if walking_object_node != null and not walking_object_node is ESCPlayer:
|
||||
walking_object_node.stop_walking_now()
|
||||
|
||||
@@ -66,5 +66,5 @@ func run(command_params: Array) -> int:
|
||||
|
||||
# Function called when the command is interrupted.
|
||||
func interrupt():
|
||||
if not walking_object_node is ESCPlayer:
|
||||
if walking_object_node != null and not walking_object_node is ESCPlayer:
|
||||
walking_object_node.stop_walking_now()
|
||||
|
||||
Reference in New Issue
Block a user