]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/RunState.cpp
removed direct access to battle's monsters vector
[l2e.git] / src / battle / states / RunState.cpp
index 7fdc0665c82b6bd09bc64fa2c31d033ae728ad8c..6f4325a0b72d0f3850b334c83fe8fe321c771316 100644 (file)
@@ -49,8 +49,8 @@ void RunState::Resize(int width, int height) {
 
 void RunState::HandleEvents(const Input &input) {
        if (timer.Finished()) {
+               battle->SetRunaway();
                ctrl->PopState(); // pop self
-               ctrl->PopState(); // pop battle
        }
 }