From c92db19b1dd061fd9ac2102b4e94fae2ad39137a Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 13 May 2010 20:55:50 +0200 Subject: [PATCH] Fixed: #895 BUILD BREAK: Nel Broken again with listener_xaudio2.cpp syntax error --- code/nel/src/sound/driver/xaudio2/listener_xaudio2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/nel/src/sound/driver/xaudio2/listener_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/listener_xaudio2.cpp index fb65e43b1..0130ef4a9 100644 --- a/code/nel/src/sound/driver/xaudio2/listener_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/listener_xaudio2.cpp @@ -75,8 +75,9 @@ CListenerXAudio2::~CListenerXAudio2() if (soundDriver) soundDriver->removeListener(this); } -#define NLSOUND_XAUDIO2_RELEASE_EX(pointer, command) if (_ListenerOk) nlassert(pointer) \ +#define NLSOUND_XAUDIO2_RELEASE_EX(pointer, command) if (_ListenerOk) nlassert(pointer); \ if (pointer) { command; pointer = NULL; } + void CListenerXAudio2::release() { NLSOUND_XAUDIO2_RELEASE_EX(_FilterVoice, _FilterVoice->DestroyVoice())