Add #if FLX_DEBUG in TrackerUtil

`Tracker.addProfile` only exists when FLX_DEBUG is set, so
add this conditional check to fix non-debug builds.
This commit is contained in:
Mike Welsh 2024-03-06 22:48:44 -08:00
parent 1fe554e24e
commit 69b28ca42c

View file

@ -17,7 +17,9 @@ class TrackerUtil
*/
public static function initTrackers():Void
{
#if FLX_DEBUG
Tracker.addProfile(new TrackerProfile(Highscore, ["tallies"]));
FlxG.console.registerClass(Highscore);
#end
}
}