From 64ed7f2bd5737e86eadf4c35fddae6d12a69ed6b Mon Sep 17 00:00:00 2001 From: sndth <75499293+sndth@users.noreply.github.com> Date: Mon, 1 Sep 2025 17:15:18 +0200 Subject: [PATCH] Fix issue with dangling playSoundInstance pointer --- src/GameLib/Area.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GameLib/Area.cpp b/src/GameLib/Area.cpp index 399f8eb..8fe8cd0 100644 --- a/src/GameLib/Area.cpp +++ b/src/GameLib/Area.cpp @@ -1397,5 +1397,6 @@ CArea::SAmbienceInstance::SAmbienceInstance() fy = 0.0f; fz = 0.0f; dwRange = 0; + playSoundInstance = nullptr; fNextPlayTime = 0.0f; }