]> git.mxchange.org Git - simgear.git/commitdiff
StateMachine: fix transition source location
authorTorsten Dreyer <torsten@ŧ3r.de>
Tue, 21 Apr 2015 11:45:16 +0000 (13:45 +0200)
committerTorsten Dreyer <torsten@ŧ3r.de>
Tue, 21 Apr 2015 11:45:16 +0000 (13:45 +0200)
source should be child of transition

simgear/structure/StateMachine.cxx

index 1854c745afbe0766cdefa2b0ed9865108cfe37c1..178b9c6165ed4c7a5012c75744004dddd03973f7 100644 (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);
         }