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

Fix bug where the event is malformed

This commit is contained in:
Mathieu Schroeter 2017-08-26 00:57:36 +02:00
parent bfe84f65ca
commit 69acdc1bcc

View File

@ -4848,7 +4848,7 @@ CEvent::DemoStep ()
event.motion.x = m_pDemoSDLBuffer[m_demoIndex].x;
event.motion.y = m_pDemoSDLBuffer[m_demoIndex].y;
}
else
else if (event.type != SDL_KEYUP && event.type != SDL_KEYDOWN)
{
event.button.button = m_pDemoSDLBuffer[m_demoIndex].button;
event.button.x = m_pDemoSDLBuffer[m_demoIndex].x;