diff --git a/src/ScriptResolving/AngelScript/AngelScriptScript.cpp b/src/ScriptResolving/AngelScript/AngelScriptScript.cpp index 09177a9..245f21a 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptScript.cpp +++ b/src/ScriptResolving/AngelScript/AngelScriptScript.cpp @@ -132,7 +132,7 @@ void AngelScriptScript::PreventStatBoostChange(CreatureLib::Battling::Creature* CreatureLib::Library::Statistic stat, int8_t diffAmount, bool* prevent) { CALL_HOOK(PreventStatBoostChange, { ctx->SetArgObject(0, (void*)target); - ctx->SetArgByte(1, (u8)stat); + ctx->SetArgDWord(1, (i32)stat); ctx->SetArgByte(2, diffAmount); ctx->SetArgAddress(3, prevent); }) @@ -142,7 +142,7 @@ void AngelScriptScript::ModifyStatBoostChange(CreatureLib::Battling::Creature* t CreatureLib::Library::Statistic stat, int8_t* diffAmount) { CALL_HOOK(ModifyStatBoostChange, { ctx->SetArgObject(0, (void*)target); - ctx->SetArgByte(1, (u8)stat); + ctx->SetArgDWord(1, (i32)stat); ctx->SetArgAddress(2, diffAmount); }) }