Skip to content

Commit

Permalink
Forgot a null check in FlxVisual
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Jan 24, 2010
1 parent 817895e commit b21a6f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions org/flixel/FlxVisual.as
Expand Up @@ -60,7 +60,7 @@ package org.flixel
if(_fadeTimer <= 0) {
_fadeTimer = -1;
alpha = _fadeAlpha;
_fadeCallback();
if (_fadeCallback != null) _fadeCallback();
}
}
}
Expand Down Expand Up @@ -163,7 +163,7 @@ package org.flixel
*
* @param Duration The time duration the fade takes place in.
* @param Alpha The alpha at the end of the fade.
* @param Callback .
* @param Callback A function called when the fade completes.
*/
public function fade(Duration:Number=1,Alpha:Number=0,Callback:Function=null):void {
_fadeTimer = Duration;
Expand All @@ -179,4 +179,4 @@ package org.flixel
*/
public function fading():Boolean { return _fadeTimer >= 0; }
}
}
}

0 comments on commit b21a6f9

Please sign in to comment.