]> git.mxchange.org Git - simgear.git/commitdiff
StateMachine: fix messed up entry/exit/update bindings
authorTorsten Dreyer <torsten@ŧ3r.de>
Tue, 21 Apr 2015 08:02:22 +0000 (10:02 +0200)
committerTorsten Dreyer <torsten@ŧ3r.de>
Tue, 21 Apr 2015 08:02:22 +0000 (10:02 +0200)
simgear/structure/StateMachine.cxx

index b9e540c8aa79ee8303f1e8700a5f96bc597c5b46..1854c745afbe0766cdefa2b0ed9865108cfe37c1 100644 (file)
@@ -439,9 +439,9 @@ void StateMachine::initFromPlist(SGPropertyNode* desc, SGPropertyNode* root)
         std::string nm = stateDesc->getStringValue("name");
         State_ptr st(new State(nm));
         
-        readBindingList(stateDesc, "enter", root, st->d->_updateBindings);
-        readBindingList(stateDesc, "exit", root, st->d->_entryBindings);
-        readBindingList(stateDesc, "update", root, st->d->_exitBindings);
+        readBindingList(stateDesc, "enter", root, st->d->_entryBindings);
+        readBindingList(stateDesc, "update", root, st->d->_updateBindings);
+        readBindingList(stateDesc, "exit", root, st->d->_exitBindings);
         
         addState(st);
     } // of states iteration