From: Torsten Dreyer Date: Tue, 21 Apr 2015 11:45:16 +0000 (+0200) Subject: StateMachine: fix transition source location X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=541239ceacd039a5f93dc724baad9fae6b0d454b;p=simgear.git StateMachine: fix transition source location source should be child of transition --- 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); }