Browse Source

Fix giving commands in battles in hotseat

Ivan Savenko 2 years ago
parent
commit
e40dc76304
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/battle/BattleInterface.cpp

+ 1 - 1
client/battle/BattleInterface.cpp

@@ -265,7 +265,7 @@ void BattleInterface::sendCommand(BattleAction command, const CStack * actor)
 	{
 		logGlobal->trace("Setting command for %s", (actor ? actor->nodeName() : "hero"));
 		stacksController->setActiveStack(nullptr);
-		LOCPLINT->cb->battleMakeUnitAction(command);
+		curInt->cb->battleMakeUnitAction(command);
 	}
 	else
 	{