From ede9b91c841ee45ba7d32805267a6103dd535b70 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Mon, 26 Dec 2022 17:25:59 +0100 Subject: [PATCH] not the nuts!! --- buildnumber.txt | 2 +- source/funkin/system/CoolUtil.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }