From 4d81ca1d08da8db66164131d5593b604d24babd0 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 21 Nov 2021 12:49:10 +0100 Subject: [PATCH] Fixes for OnFaint in Angelscript. --- src/ScriptResolving/AngelScript/AngelScriptScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScriptResolving/AngelScript/AngelScriptScript.cpp b/src/ScriptResolving/AngelScript/AngelScriptScript.cpp index 6a29c1d..91662fe 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptScript.cpp +++ b/src/ScriptResolving/AngelScript/AngelScriptScript.cpp @@ -345,7 +345,7 @@ CreatureLib::Battling::BattleScript* AngelScriptScript::Clone(const ArbUt::Optio void AngelScriptScript::OnFaint(CreatureLib::Battling::Creature* creature, CreatureLib::Battling::DamageSource source) { CALL_HOOK(OnFaint, { ctx->SetArgObject(0, (void*)creature); - ctx->SetArgWord(1, static_cast(source)); + ctx->SetArgDWord(1, static_cast(source)); }) } void AngelScriptScript::BlockWeather(CreatureLib::Battling::Battle* battle, bool* blockWeather) {