diff --git a/buildnumber.txt b/buildnumber.txt index 5093c79f..c7ecf224 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1795 \ No newline at end of file +1796 \ No newline at end of file diff --git a/source/funkin/system/CoolUtil.hx b/source/funkin/system/CoolUtil.hx index cff61653..12411a77 100644 --- a/source/funkin/system/CoolUtil.hx +++ b/source/funkin/system/CoolUtil.hx @@ -33,7 +33,7 @@ class CoolUtil * @param defaultValue The default value * @return The return value */ - public static inline function getDefault(v:T, defaultValue:T):T { + public static inline function getDefault(v:Null, defaultValue:T):Null { return (v == null || isNaN(v)) ? defaultValue : v; }