瀏覽代碼

Fix giving commands in battles in hotseat

Ivan Savenko 2 年之前
父節點
當前提交
e40dc76304
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 	{