1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

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

The original exception object should be rethrown
This commit is contained in:
Alexander Wilms 2023-10-27 14:11:55 +00:00
parent e4aaeef5da
commit bcaa2e5966

View File

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