Fixes the passing of enums in PreventStatBoostChange and ModifyStatBoostChange
continuous-integration/drone/push Build is passing Details

I kind of forgot how enums work in Angelscript, whoops
This commit is contained in:
Deukhoofd 2022-02-12 19:13:05 +01:00
parent a03769e9bf
commit 0d87e480d1
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 2 deletions

View File

@ -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);
})
}