mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user