Skip to content

Commit 638d744

Browse files
authored
fix: EmitSoundFilter Crash (#1066)
1 parent 37951f2 commit 638d744

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/managers/entity_manager.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,11 @@ enum gender_t : uint8
206206
struct EmitSound_t
207207
{
208208
EmitSound_t()
209-
: m_nChannel(0), m_pSoundName(0), m_flVolume(VOL_NORM), m_SoundLevel(SNDLVL_NONE), m_nFlags(0), m_nPitch(PITCH_NORM), m_pOrigin(0),
209+
: m_pSoundName(0), m_flVolume(VOL_NORM), m_SoundLevel(SNDLVL_NONE), m_nFlags(0), m_nPitch(PITCH_NORM), m_pOrigin(0),
210210
m_flSoundTime(0.0f), m_pflSoundDuration(0), m_bEmitCloseCaption(true), m_bWarnOnMissingCloseCaption(false),
211211
m_bWarnOnDirectWaveReference(false), m_nSpeakerEntity(-1), m_UtlVecSoundOrigin(), m_nForceGuid(0), m_SpeakerGender(GENDER_NONE)
212212
{
213213
}
214-
int m_nChannel;
215214
const char* m_pSoundName;
216215
float m_flVolume;
217216
soundlevel_t m_SoundLevel;

0 commit comments

Comments
 (0)