1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fixed cheats - sendMesssage will also pass current object.

Workaround-ish but should work. Branch should be fixed now.
This commit is contained in:
Ivan Savenko
2014-09-21 20:35:53 +03:00
parent c4fc8f08c0
commit aa0433228a
7 changed files with 24 additions and 23 deletions

View File

@ -1168,7 +1168,7 @@ void CInGameConsole::endEnteringText(bool printEnteredText)
if(printEnteredText)
{
std::string txt = enteredText.substr(0, enteredText.size()-1);
LOCPLINT->cb->sendMessage(txt);
LOCPLINT->cb->sendMessage(txt, LOCPLINT->getSelection());
previouslyEntered.push_back(txt);
//print(txt);
}