Ndk/StateMachine: Fix constructor not calling State::Enter

Former-commit-id: 8e66600c19c53617cab1d889d8fa3c219bc9ea19
This commit is contained in:
Lynix 2016-03-29 23:42:25 +02:00
parent 12968c73fe
commit 8ae493b535
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ namespace Ndk
m_currentState(std::move(originalState))
{
NazaraAssert(m_currentState, "StateMachine must have a state to begin with");
m_currentState->Enter(*this);
}
inline StateMachine::~StateMachine()