Permalink
Browse files

fixed problem with replays in release mode

  • Loading branch information...
1 parent 43e2de3 commit 0fa20871313f68b27087908d38630d38ed78aa6f @AdamAtomic committed May 3, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 org/flixel/FlxGame.as
View
@@ -562,14 +562,16 @@ package org.flixel
_replayCallback = null;
}
}
- _debugger.vcr.updateRuntime(_step);
+ if(_debugger != null)
+ _debugger.vcr.updateRuntime(_step);
}
else
FlxG.updateInput();
if(_recording)
{
_replay.recordFrame();
- _debugger.vcr.updateRuntime(_step);
+ if(_debugger != null)
+ _debugger.vcr.updateRuntime(_step);
}
update();
FlxG.mouse.wheel = 0;

0 comments on commit 0fa2087

Please sign in to comment.