repair the segment fault bug in con_startvideo

This commit is contained in:
sirius 2019-10-01 22:44:01 +08:00
parent ca583ba2a9
commit 6acae69d96

View file

@ -3321,7 +3321,7 @@ void CClient::Con_StartVideo(IConsole::IResult *pResult, void *pUserData)
if (!IVideo::Current()) if (!IVideo::Current())
{ {
new CVideo((CGraphics_Threaded*)pSelf->m_pGraphics, pSelf->Storage(), pSelf->m_pConsole, pSelf->Graphics()->ScreenWidth(), pSelf->Graphics()->ScreenHeight(), NULL); new CVideo((CGraphics_Threaded*)pSelf->m_pGraphics, pSelf->Storage(), pSelf->m_pConsole, pSelf->Graphics()->ScreenWidth(), pSelf->Graphics()->ScreenHeight(), "");
IVideo::Current()->start(); IVideo::Current()->start();
} }
else else