diff --git a/src/flash/display/DisplayObject.ts b/src/flash/display/DisplayObject.ts index d2a5aa0dd..5b22799d8 100644 --- a/src/flash/display/DisplayObject.ts +++ b/src/flash/display/DisplayObject.ts @@ -477,7 +477,8 @@ module Shumway.AVM2.AS.flash.display { runScripts = DisplayObject._runScripts; } - assert(DisplayObject._advancableInstances.length < 1024 * 16, "Too many advancable instances."); + release || assert(DisplayObject._advancableInstances.length < 1024 * 16, + "Too many advancable instances."); // Step 1: Remove timeline objects that don't exist on new frame, update existing ones with // new properties, and declare, but not create, new ones, update numChildren.