From: Torsten Dreyer Date: Tue, 21 Apr 2015 08:02:22 +0000 (+0200) Subject: StateMachine: fix messed up entry/exit/update bindings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fd740959391ac4c54012fe101bf872eddb9ee303;p=simgear.git StateMachine: fix messed up entry/exit/update bindings --- diff --git a/simgear/structure/StateMachine.cxx b/simgear/structure/StateMachine.cxx index b9e540c8..1854c745 100644 --- a/simgear/structure/StateMachine.cxx +++ b/simgear/structure/StateMachine.cxx @@ -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