play_sound not correctly handling floating point MethodScript values
LadyCailinBot opened this issue ยท 1 comments
CMDHELPER-2837 - Reported by CyaNox
The following code:
*:/testsound = >>>
play_sound(ploc(), array('sound': 'FIZZ', 'volume': 0.1, 'pitch': 0.1))
<<<
Produces the following error:
RangeException: Expecting a 32 bit float, but a larger value was found: 0.1
This is probably because CH itself only uses doubles and thus passes the wrong type to the underlying code.
No additional stack trace was produced (even in debug mode).