Skip to content

Commit

Permalink
Fix IDirectInputEffect array
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Jun 26, 2024
1 parent cbddb3b commit 831a4b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 74
#define BUILD_NUMBER 75
4 changes: 2 additions & 2 deletions IDirectInputDeviceX.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class m_IDirectInputDeviceX : public AddressLookupTableDinputObject
void *WrapperInterface7;

// Vector to store instances of m_IDirectInputEffect
std::vector<m_IDirectInputEffect> effects;
std::vector<m_IDirectInputEffect*> effects;

// For CooperativeLevel
bool CanAquireDevice = false;
Expand Down Expand Up @@ -160,7 +160,7 @@ class m_IDirectInputDeviceX : public AddressLookupTableDinputObject

for (auto& entry : effects)
{
entry.DeleteMe();
entry->DeleteMe();
}

// Delete Critical Section
Expand Down

0 comments on commit 831a4b2

Please sign in to comment.