浏览代码

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