Pārlūkot izejas kodu

AI/VCAI/VCAI.cpp: Remove "e" from "throw" statement to rethrow the original exception.

The original exception object should be rethrown
Alexander Wilms 2 gadi atpakaļ
vecāks
revīzija
bcaa2e5966
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      AI/VCAI/VCAI.cpp

+ 1 - 1
AI/VCAI/VCAI.cpp

@@ -1510,7 +1510,7 @@ void VCAI::wander(HeroPtr h)
 					if(e.goal->goalType == Goals::EGoals::VISIT_TILE || e.goal->goalType == Goals::EGoals::VISIT_OBJ)
 						continue;
 
-					throw e;
+					throw;
 				}
 			}
 			else