dmuratshin 9 years ago
parent
commit
c208716235
2 changed files with 9 additions and 0 deletions
  1. 3 0
      src/flow/Scene.cpp
  2. 6 0
      src/flow/flow.cpp

+ 3 - 0
src/flow/Scene.cpp

@@ -240,7 +240,10 @@ namespace oxygine
                 if (ev)
                     static_cast<Event&>(_finishEvent) = *ev;
                 else
+                {
                     _finishEvent = FlowEvent();
+                    _finishEvent.target = _finishEvent.currentTarget = getStage();
+                }
             }
 
             //Flow::instance.checkDone();

+ 6 - 0
src/flow/flow.cpp

@@ -130,6 +130,12 @@ namespace oxygine
             {
                 scenes.erase(it);
             }
+
+            it = std::find(scenes2show.begin(), scenes2show.end(), scene);
+            if (it != scenes2show.end())
+            {
+                scenes2show.erase(it);
+            }
         }
 
         void Flow::phaseBegin(spScene current, spScene next, bool back)