StateMachine: fix transition source location

source should be child of transition
This commit is contained in:
Torsten Dreyer 2015-04-21 13:45:16 +02:00
parent fd74095939
commit 541239ceac

View File

@ -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);
}