mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
CGuiHandler: fix false positive dangling pointer
Making this an auto variable fixes compilation with Werror.
This commit is contained in:
@ -192,7 +192,7 @@ void CGuiHandler::handleEvents()
|
||||
while(!SDLEventsQueue.empty())
|
||||
{
|
||||
continueEventHandling = true;
|
||||
SDL_Event ev = SDLEventsQueue.front();
|
||||
auto ev = SDLEventsQueue.front();
|
||||
current = &ev;
|
||||
SDLEventsQueue.pop();
|
||||
|
||||
|
Reference in New Issue
Block a user