[StateMachine] Fix error message for travel method

(cherry picked from commit 4de6c94eb0)
This commit is contained in:
Guilherme Felipe 2019-05-19 23:43:26 -03:00 committed by Rémi Verschelde
parent 7022e02d4d
commit 14587802f9

View file

@ -315,8 +315,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);
}