mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 07:17:57 +03:00
Fixed vgui screens potentially crashing on save
This commit is contained in:
parent
146df3c961
commit
eb46739ab5
@ -82,7 +82,11 @@ bool CVGuiScreen::KeyValue( const char *szKeyName, const char *szValue )
|
||||
const char* pszOutputName = szKeyName + 1;
|
||||
int i = m_PanelOutputs.Find(pszOutputName);
|
||||
if (!m_PanelOutputs.IsValidIndex(i))
|
||||
i = m_PanelOutputs.Insert(pszOutputName, new COutputEvent);
|
||||
{
|
||||
auto pMem = new COutputEvent;
|
||||
V_memset(pMem, 0, sizeof(COutputEvent));
|
||||
i = m_PanelOutputs.Insert(pszOutputName, pMem);
|
||||
}
|
||||
|
||||
m_PanelOutputs[i]->ParseEventAction(szValue);
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user