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:
parent
85ed630ba6
commit
69dbf339fc
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user