Skip to content

Commit

Permalink
fixed fmodSource losing DSP every frame (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinleon authored Jun 14, 2024
1 parent 6c1839d commit 807b894
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void CheckForChangedEventInstance()
if (mEventEmitter != null)
{
var eventInstance = FMODUnity_StudioEventEmitter_EventInstance.GetValue(mEventEmitter, null);
if (eventInstance != mEventInstance)
if (!eventInstance.Equals(mEventInstance))
{
// The event instance is different from the one we last used, which most likely means the
// event-related objects were destroyed and re-created. Make sure we look for the DSP instance
Expand Down

0 comments on commit 807b894

Please sign in to comment.