mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Change ClientCommandManager to become non-static
This commit is contained in:
@@ -239,7 +239,14 @@ int main(int argc, char * argv[])
|
||||
std::cout.flags(std::ios::unitbuf);
|
||||
#ifndef VCMI_IOS
|
||||
console = new CConsoleHandler();
|
||||
*console->cb = ClientCommandManager::processCommand;
|
||||
|
||||
auto callbackFunction = [](std::string buffer, bool calledFromIngameConsole)
|
||||
{
|
||||
ClientCommandManager commandController;
|
||||
commandController.processCommand(buffer, calledFromIngameConsole);
|
||||
};
|
||||
|
||||
*console->cb = callbackFunction;
|
||||
console->start();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user