浏览代码

Nullkiller: blind fix for unit tests to compile

Andrii Danylchenko 4 年之前
父节点
当前提交
07b6b0605c
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      AI/Nullkiller/Engine/Nullkiller.cpp

+ 0 - 7
AI/Nullkiller/Engine/Nullkiller.cpp

@@ -233,13 +233,6 @@ void Nullkiller::makeTurn()
 
 		Goals::TTask bestTask = choseBestTask(bestTasks);
 
-		/*if(bestTask->invalid())
-		{
-			logAi->trace("No goals found. Ending turn.");
-
-			return;
-		}*/
-
 		if(bestTask->priority < MIN_PRIORITY)
 		{
 			logAi->trace("Goal %s has too low priority. It is not worth doing it. Ending turn.", bestTask->toString());