Tweaks for exception handling.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-07-28 19:37:03 +02:00
parent e2e706693b
commit 13c4609cdd
5 changed files with 12 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ bool Battle::CanUse(const ArbUt::BorrowedPtr<BaseTurnChoice>& choice) {
}
bool Battle::TrySetChoice(BaseTurnChoice* choice) {
AssertNotNull(choice)
AssertNotNull(choice);
if (!CanUse(choice))
return false;
choice->GetUser()->GetBattleSide()->SetChoice(choice);