logarrhythmic / karaOK

Aegisub KFX library
28 stars 7 forks source link

Rounding function broken #1

Closed The0x539 closed 5 years ago

The0x539 commented 5 years ago

As of the most recent change, in line 868 of kara.lua, the code tries to evaluate the sign of v, a variable name used nowhere else in the file. I imagine this was supposed to be num. This results in an attempt to determine sgn(nil), rendering the round function (and consequently many other functions) unusable.

logarrhythmic commented 5 years ago

Oops, I guess I didn't even try to use it after making that change. Fixed.