Fixes the passing of enums in PreventStatBoostChange and ModifyStatBoostChange
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
I kind of forgot how enums work in Angelscript, whoops
This commit is contained in:
parent
a03769e9bf
commit
0d87e480d1
|
@ -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);
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue