Bläddra i källkod

CGuiHandler: fix false positive dangling pointer

Making this an auto variable fixes compilation with Werror.
Konstantin 2 år sedan
förälder
incheckning
a7bd7232ce
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      client/gui/CGuiHandler.cpp

+ 1 - 1
client/gui/CGuiHandler.cpp

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