Ndk/StateMachine: Fix constructor not calling State::Enter
Former-commit-id: 8e66600c19c53617cab1d889d8fa3c219bc9ea19
This commit is contained in:
@@ -12,6 +12,7 @@ namespace Ndk
|
|||||||
m_currentState(std::move(originalState))
|
m_currentState(std::move(originalState))
|
||||||
{
|
{
|
||||||
NazaraAssert(m_currentState, "StateMachine must have a state to begin with");
|
NazaraAssert(m_currentState, "StateMachine must have a state to begin with");
|
||||||
|
m_currentState->Enter(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline StateMachine::~StateMachine()
|
inline StateMachine::~StateMachine()
|
||||||
|
|||||||
Reference in New Issue
Block a user