mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 10:04:18 +00:00
repair the segment fault bug in con_startvideo
This commit is contained in:
parent
ca583ba2a9
commit
6acae69d96
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue