mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
CGuiHandler: fix false positive dangling pointer
Making this an auto variable fixes compilation with Werror.
This commit is contained in:
parent
f93c9277c6
commit
a7bd7232ce
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user