Browse Source

fix passing coordinates of the status bar when triggering in-game console input

Andrey Filipenkov 3 years ago
parent
commit
8c8394b6ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/widgets/AdventureMapClasses.cpp

+ 1 - 1
client/widgets/AdventureMapClasses.cpp

@@ -1129,7 +1129,7 @@ void CInGameConsole::textEdited(const SDL_TextEditingEvent & event)
 
 
 void CInGameConsole::startEnteringText()
 void CInGameConsole::startEnteringText()
 {
 {
-	CSDL_Ext::startTextInput(&pos);
+	CSDL_Ext::startTextInput(&GH.statusbar->pos);
 
 
 	enteredText = "_";
 	enteredText = "_";
 	if(GH.topInt() == adventureInt)
 	if(GH.topInt() == adventureInt)