Skip to content

Commit e6ad163

Browse files
committed
Re-add EmitSound_t default constructor to fix EmitSoundFilter
1 parent 32b8c6b commit e6ad163

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/cs2_sdk/entity/globaltypes.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@ enum gender_t : uint8
141141

142142
struct EmitSound_t
143143
{
144+
EmitSound_t() :
145+
m_pSoundName(0),
146+
m_vecSoundOrigin(),
147+
m_flVolume(VOL_NORM),
148+
m_flSoundTime(0.0f),
149+
m_nForceGuid(0),
150+
m_nPitch(PITCH_NORM),
151+
m_nFlags(0)
152+
{
153+
}
144154
const char* m_pSoundName; // 0x0
145155
Vector m_vecSoundOrigin; // 0x8
146156
float m_flVolume; // 0x14

0 commit comments

Comments
 (0)