1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

CGuiHandler: fix invalid read on event handling

This commit is contained in:
Arseniy Shestakov 2018-01-18 06:34:57 +03:00
parent 85ed630ba6
commit 69dbf339fc

View File

@ -194,7 +194,8 @@ void CGuiHandler::handleEvents()
while(!events.empty())
{
continueEventHandling = true;
current = &events.front();
SDL_Event ev = events.front();
current = &ev;
events.pop();
handleCurrentEvent();
}