# Issue with FMOD\_STUDIO\_EVENT\_PROPERTY\_MINIMUM\_DISTANCE / FMOD\_STUDIO\_EVENT\_PROPERTY\_MAXIMUM\_DISTANCE?

**URL:** <https://qa.fmod.com/t/issue-with-fmod-studio-event-property-minimum-distance-fmod-studio-event-property-maximum-distance/12297>\
**Category:** FMOD Engine\
**Created:** [February 9, 2016, 7:09pm UTC](https://qa.fmod.com/t/issue-with-fmod-studio-event-property-minimum-distance-fmod-studio-event-property-maximum-distance/12297 "2016-02-09T19:09:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vectorunit](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vectorunit](https://qa.fmod.com/u/vectorunit)\
**Post date:** [February 9, 2016, 7:09pm UTC](https://qa.fmod.com/t/issue-with-fmod-studio-event-property-minimum-distance-fmod-studio-event-property-maximum-distance/12297/1 "2016-02-09T19:09:13Z")

</div>

It’s fantastic to be able to override the min/max distance per instance using the FMOD Studio API. However, a value of -1 (for default) does not seem to be working as expected. I assume that -1 implies that the settings from the event editor are used, but when I set this, I don’t hear anything anymore (ends up with a size of 0?).

Is this behavior as expected?

---

<div class="post-metadata">

**Author:** ![graeme](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@graeme](https://qa.fmod.com/u/graeme)\
**Post date:** [February 12, 2016, 6:31am UTC](https://qa.fmod.com/t/issue-with-fmod-studio-event-property-minimum-distance-fmod-studio-event-property-maximum-distance/12297/2 "2016-02-12T06:31:42Z")

</div>

Hi Ralf,

The expected behavior is that passing -1 should restore the setting to the value defined in the event editor.

However, I took a look at the source code and discovered that this is not in fact the case. Instead it ends up with a size of 0, as you found. So that’s a bug.

We’ll fix this in the next release. Thanks for bringing it to our attention.

---

<div class="post-metadata">

**Author:** ![vectorunit](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vectorunit](https://qa.fmod.com/u/vectorunit)\
**Post date:** [February 22, 2016, 2:52am UTC](https://qa.fmod.com/t/issue-with-fmod-studio-event-property-minimum-distance-fmod-studio-event-property-maximum-distance/12297/3 "2016-02-22T02:52:32Z")

</div>

> [@](#):
>
> Hi Ralf,
> 
> The expected behavior is that passing -1 should restore the setting to the value defined in the event editor.
> 
> However, I took a look at the source code and discovered that this is not in fact the case. Instead it ends up with a size of 0, as you found. So that’s a bug.
> 
> We’ll fix this in the next release. Thanks for bringing it to our attention.

Good to know. What this issue addressed in 1.07.07?

---

<div class="post-metadata">

**Author:** ![graeme](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@graeme](https://qa.fmod.com/u/graeme)\
**Post date:** [February 23, 2016, 5:05am UTC](https://qa.fmod.com/t/issue-with-fmod-studio-event-property-minimum-distance-fmod-studio-event-property-maximum-distance/12297/4 "2016-02-23T05:05:17Z")

</div>

Sorry, the fix didn’t make it in to 1.07.07. It should be there for 1.07.08.
