forked from valve/halflife-sdk
game_shared: workaround crash on exit (caused by GoldSrc dlclosing client before initializing it)
This commit is contained in:
parent
3c55a584a3
commit
d62c5fda47
1 changed files with 6 additions and 4 deletions
|
@ -129,6 +129,8 @@ CVoiceStatus::CVoiceStatus()
|
||||||
|
|
||||||
m_bTalking = m_bServerAcked = false;
|
m_bTalking = m_bServerAcked = false;
|
||||||
|
|
||||||
|
// a1ba: should be safe, it's a simple type
|
||||||
|
memset(m_Labels, 0, sizeof(m_Labels));
|
||||||
memset(m_pBanButtons, 0, sizeof(m_pBanButtons));
|
memset(m_pBanButtons, 0, sizeof(m_pBanButtons));
|
||||||
|
|
||||||
m_bServerModEnable = -1;
|
m_bServerModEnable = -1;
|
||||||
|
@ -156,7 +158,7 @@ CVoiceStatus::~CVoiceStatus()
|
||||||
|
|
||||||
FreeBitmaps();
|
FreeBitmaps();
|
||||||
|
|
||||||
if(gEngfuncs.pfnGetGameDirectory())
|
if(gEngfuncs.pfnGetGameDirectory && gEngfuncs.pfnGetGameDirectory())
|
||||||
{
|
{
|
||||||
if(m_bBanMgrInitialized)
|
if(m_bBanMgrInitialized)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue