1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Prevent crash when event is null

This commit is contained in:
Mathieu Schroeter 2017-02-04 16:24:16 +01:00
parent 942b97b2e7
commit a4dd39d865

View File

@ -4668,7 +4668,7 @@ POINT CEvent::GetLastMousePos()
bool CEvent::TreatEvent(const SDL_Event *event)
{
if ( m_bDemoPlay ) // démo en lecture ?
if ( m_bDemoPlay && event) // démo en lecture ?
{
if (event->type == SDL_KEYDOWN ||
event->type == SDL_KEYUP ||