StateMachine: fix messed up entry/exit/update bindings

This commit is contained in:
Torsten Dreyer
2015-04-21 10:02:22 +02:00
parent b24d190e55
commit fd74095939

View 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