1
0
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:
Konstantin 2023-01-22 15:47:05 +03:00
parent f93c9277c6
commit a7bd7232ce

View File

@ -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();