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:
parent
942b97b2e7
commit
a4dd39d865
@ -4668,7 +4668,7 @@ POINT CEvent::GetLastMousePos()
|
|||||||
|
|
||||||
bool CEvent::TreatEvent(const SDL_Event *event)
|
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 ||
|
if (event->type == SDL_KEYDOWN ||
|
||||||
event->type == SDL_KEYUP ||
|
event->type == SDL_KEYUP ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user