Browse Source

Nullkiller: blind fix for unit tests to compile

Andrii Danylchenko 4 years ago
parent
commit
07b6b0605c
1 changed files with 0 additions and 7 deletions
  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());