Fixes invalid set up of ChangeAttack.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-11-21 13:17:25 +01:00
parent 2396615d4a
commit b0f9daef60
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ void AngelScriptScript::OnBeforeTurn(const CreatureLib::Battling::BaseTurnChoice
void AngelScriptScript::ChangeAttack(CreatureLib::Battling::AttackTurnChoice* choice, ArbUt::StringView* outAttack) { void AngelScriptScript::ChangeAttack(CreatureLib::Battling::AttackTurnChoice* choice, ArbUt::StringView* outAttack) {
CALL_HOOK(ChangeAttack, { CALL_HOOK(ChangeAttack, {
ctx->SetArgObject(0, (void*)choice); ctx->SetArgObject(0, (void*)choice);
ctx->SetArgAddress(0, outAttack); ctx->SetArgAddress(1, outAttack);
}) })
} }
void AngelScriptScript::PreventAttack(CreatureLib::Battling::ExecutingAttack* attack, bool* outResult) { void AngelScriptScript::PreventAttack(CreatureLib::Battling::ExecutingAttack* attack, bool* outResult) {