not the nuts!!

This commit is contained in:
Yoshman29
2022-12-26 17:25:59 +01:00
parent 8f01e1a1c9
commit ede9b91c84
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
1795
1796
+1 -1
View File
@@ -33,7 +33,7 @@ class CoolUtil
* @param defaultValue The default value
* @return The return value
*/
public static inline function getDefault<T>(v:T, defaultValue:T):T {
public static inline function getDefault<T>(v:Null<T>, defaultValue:T):Null<T> {
return (v == null || isNaN(v)) ? defaultValue : v;
}