CommandHelper

CommandHelper

46.5k Downloads

play_sound not correctly handling floating point MethodScript values

LadyCailinBot opened this issue ยท 1 comments

commented

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).

commented

Comment by LadyCailin

This is fixed in the latest build.