소스 검색

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

The original exception object should be rethrown
Alexander Wilms 2 년 전
부모
커밋
bcaa2e5966
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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