From 831a4b2eb9b672f2a371347233b3d27cd10e1cc6 Mon Sep 17 00:00:00 2001 From: Elisha Riedlinger Date: Wed, 26 Jun 2024 14:37:38 -0700 Subject: [PATCH] Fix IDirectInputEffect array --- BuildNo.rc | 2 +- IDirectInputDeviceX.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BuildNo.rc b/BuildNo.rc index 1e5ecb4..6f69e3f 100644 --- a/BuildNo.rc +++ b/BuildNo.rc @@ -1 +1 @@ -#define BUILD_NUMBER 74 +#define BUILD_NUMBER 75 diff --git a/IDirectInputDeviceX.h b/IDirectInputDeviceX.h index f3b3d71..53ce431 100644 --- a/IDirectInputDeviceX.h +++ b/IDirectInputDeviceX.h @@ -19,7 +19,7 @@ class m_IDirectInputDeviceX : public AddressLookupTableDinputObject void *WrapperInterface7; // Vector to store instances of m_IDirectInputEffect - std::vector effects; + std::vector effects; // For CooperativeLevel bool CanAquireDevice = false; @@ -160,7 +160,7 @@ class m_IDirectInputDeviceX : public AddressLookupTableDinputObject for (auto& entry : effects) { - entry.DeleteMe(); + entry->DeleteMe(); } // Delete Critical Section