Pauser: if two consecutive blocks both used Pauser, paused_block would be overwritten... origin/fix/Pauser
authorMichael Moon <triffid.hunter@gmail.com>
Wed, 12 Feb 2014 01:12:56 +0000 (12:12 +1100)
committerMichael Moon <triffid.hunter@gmail.com>
Wed, 12 Feb 2014 01:13:04 +0000 (12:13 +1100)
src/libs/Pauser.cpp

index 65712f0..87bb321 100644 (file)
@@ -49,8 +49,9 @@ void Pauser::release(){
         THEKERNEL->call_event(ON_PLAY, &this->counter);
         if (paused_block)
         {
-            paused_block->release();
+            Block* tmp = paused_block;
             paused_block = NULL;
+            tmp->release();
         }
     }
 }