From 9c93ca69957b9a3edf9827db51c6315c1f280f56 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 31 Jul 2020 11:23:23 +0200 Subject: [PATCH] Fixed exception messages being wrong. --- src/Battling/Flow/TurnHandler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Battling/Flow/TurnHandler.cpp b/src/Battling/Flow/TurnHandler.cpp index 14783d7..51f9477 100644 --- a/src/Battling/Flow/TurnHandler.cpp +++ b/src/Battling/Flow/TurnHandler.cpp @@ -74,7 +74,7 @@ void TurnHandler::ExecuteAttackChoice(ArbUt::BorrowedPtr choic ArbUt::List> targets; try_creature(targets = TargetResolver::ResolveTargets(choice->GetTarget(), targetType, choice->GetUser()->GetBattle()); - , "Exception during target determination: '" << e.what() << "'."); + , "Exception during target determination"); auto attack = ExecutingAttack(targets, 1, choice->GetUser(), choice->GetAttack(), choice->GetAttackScript()); bool prevented = false; @@ -106,8 +106,7 @@ void TurnHandler::ExecuteAttackChoice(ArbUt::BorrowedPtr choic for (uint8_t i = 0; i < attack.GetTargetCount(); i++) { auto target = attack.GetTargets()[i]; - try_creature(HandleAttackForTarget(&attack, target), - "Exception occured during handling attack for target: '" << e.what() << "'."); + try_creature(HandleAttackForTarget(&attack, target), "Exception occured during handling attack for target"); } }