Skip to content

Commit 8ba9091

Browse files
committed
Update RuleScriptedClass.hx
1 parent 1ed34d1 commit 8ba9091

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rulescript/macro/RuleScriptedClass.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class RuleScriptedClass
119119
switch (args[i].t)
120120
{
121121
case TAbstract(t, params):
122-
t.get().name == 'Int' ? macro 0 : macro 0.0;
122+
t.get().name == 'Int' ? macro 0 : t.get().name == 'Float' ? macro 0.0 : null;
123123
default:
124124
macro null;
125125
}

0 commit comments

Comments
 (0)