From 0fa20871313f68b27087908d38630d38ed78aa6f Mon Sep 17 00:00:00 2001 From: Adam Saltsman Date: Tue, 3 May 2011 01:57:12 -0500 Subject: [PATCH] fixed problem with replays in release mode --- org/flixel/FlxGame.as | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org/flixel/FlxGame.as b/org/flixel/FlxGame.as index a1e41e49..f2effd4b 100755 --- a/org/flixel/FlxGame.as +++ b/org/flixel/FlxGame.as @@ -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;