Skip to content

Commit

Permalink
Made statemachine call deactivate on state upon switching to NONE state
Browse files Browse the repository at this point in the history
  • Loading branch information
therocode committed Jun 12, 2015
1 parent d45f50b commit 89d62d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/structure/gamestatemachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ namespace fea
{
if(returned == "NONE")
{
mCurrentState->deactivate("NONE");
mCurrentState = nullptr;
mCurrentStateName = "NONE";
}
Expand Down

0 comments on commit 89d62d4

Please sign in to comment.