Skip to content

Commit 778207b

Browse files
committed
Fix heap corruption crash (No dialog) @ GTA SA 0x4fc66f: Engine sound type 4: Accelerate or type 5/Gear change
1 parent 71ab849 commit 778207b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/mods/deathmatch/logic/CClientSound.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class CClientSound final : public CClientEntity
127127
static AudioBufferDeleter ForExternalReference() noexcept { return AudioBufferDeleter(&NoopImpl); }
128128

129129
private:
130-
static void DeleteArrayImpl(void* ptr) noexcept { ::operator delete[](ptr); }
130+
static void DeleteArrayImpl(void* ptr) noexcept { delete[] static_cast<uint8_t*>(ptr); }
131131
static void FreeImpl(void* ptr) noexcept { std::free(ptr); }
132132
static void NoopImpl(void*) noexcept {}
133133

0 commit comments

Comments
 (0)