From 541239ceacd039a5f93dc724baad9fae6b0d454b Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Tue, 21 Apr 2015 13:45:16 +0200 Subject: [PATCH] StateMachine: fix transition source location source should be child of transition --- simgear/structure/StateMachine.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/structure/StateMachine.cxx b/simgear/structure/StateMachine.cxx index 1854c745..178b9c61 100644 --- a/simgear/structure/StateMachine.cxx +++ b/simgear/structure/StateMachine.cxx @@ -456,7 +456,7 @@ void StateMachine::initFromPlist(SGPropertyNode* desc, SGPropertyNode* root) t->setTriggerCondition(cond); t->setExcludeTarget(tDesc->getBoolValue("exclude-target", true)); - BOOST_FOREACH(SGPropertyNode* src, desc->getChildren("source")) { + BOOST_FOREACH(SGPropertyNode* src, tDesc->getChildren("source")) { State_ptr srcState = findStateByName(src->getStringValue()); t->addSourceState(srcState); } -- 2.39.5