Laserlicht 1 год назад
Родитель
Сommit
fb980bdb74
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      client/eventsSDL/InputHandler.cpp

+ 3 - 1
client/eventsSDL/InputHandler.cpp

@@ -130,8 +130,10 @@ void InputHandler::handleCurrentEvent(const SDL_Event & current)
 void InputHandler::setCurrentInputModi(InputModi modi)
 {
 	if(currentInputModi != modi)
+	{
+		currentInputModi = modi;
 		GH.events().dispatchInputModiChanged(modi);
-	currentInputModi = modi;
+	}
 }
 
 InputModi InputHandler::getCurrentInputModi()