Skip to content

Commit

Permalink
ConsoleUtil.registerObject(): allow setting an object to null
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Mar 15, 2017
1 parent 897f21f commit f52c73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flixel/system/debug/console/ConsoleUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ConsoleUtil
*/
public static function registerObject(ObjectAlias:String, AnyObject:Dynamic):Void
{
if (Reflect.isObject(AnyObject))
if (AnyObject == null || Reflect.isObject(AnyObject))
interp.variables.set(ObjectAlias, AnyObject);
}

Expand Down

0 comments on commit f52c73e

Please sign in to comment.