]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/Application.cpp
moved attack order to battle state
[l2e.git] / src / app / Application.cpp
index 6e46203aa94184de00c55d90ff41025b7433d12d..ac95ed0a26f69287d24f69518acd3ef001f4cdaf 100644 (file)
@@ -159,7 +159,7 @@ void Application::HandleEvents() {
                                break;
                }
        }
-       CurrentState()->HandleEvents(input);
+       if (CurrentState()) CurrentState()->HandleEvents(input);
 }
 
 void Application::UpdateWorld(Uint32 deltaT) {