From 4de6c94eb048a355a12b9ec4cdfaf9d9265f2de2 Mon Sep 17 00:00:00 2001 From: Guilherme Felipe Date: Sun, 19 May 2019 23:43:26 -0300 Subject: [PATCH] [StateMachine] Fix error message for travel method --- scene/animation/animation_node_state_machine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/animation/animation_node_state_machine.cpp b/scene/animation/animation_node_state_machine.cpp index 1e3470cd903..60f8806b250 100644 --- a/scene/animation/animation_node_state_machine.cpp +++ b/scene/animation/animation_node_state_machine.cpp @@ -314,8 +314,9 @@ float AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *sm, if (start_request_travel) { if (!playing) { + String node_name = start_request; start_request = StringName(); - ERR_EXPLAIN("Can't travel to '" + String(start_request) + "' if state machine is not active."); + ERR_EXPLAIN("Can't travel to '" + node_name + "' if state machine is not playing."); ERR_FAIL_V(0); }