Fixes calling convention for HasVolatile in angelscript.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d588ba5dd2
commit
f5032bebb1
@ -148,7 +148,7 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
|
|||||||
asMETHOD(PkmnLib::Battling::Pokemon, GetStatBoost), asCALL_THISCALL);
|
asMETHOD(PkmnLib::Battling::Pokemon, GetStatBoost), asCALL_THISCALL);
|
||||||
Ensure(r >= 0);
|
Ensure(r >= 0);
|
||||||
r = engine->RegisterObjectMethod("Pokemon", "bool HasVolatile(const constString &in name)",
|
r = engine->RegisterObjectMethod("Pokemon", "bool HasVolatile(const constString &in name)",
|
||||||
asMETHOD(PkmnLib::Battling::Pokemon, HasVolatileScript), asCALL_CDECL_OBJFIRST);
|
asMETHOD(PkmnLib::Battling::Pokemon, HasVolatileScript), asCALL_THISCALL);
|
||||||
Ensure(r >= 0);
|
Ensure(r >= 0);
|
||||||
r = engine->RegisterObjectMethod("Pokemon", "ref@ AddVolatile(const constString &in name)",
|
r = engine->RegisterObjectMethod("Pokemon", "ref@ AddVolatile(const constString &in name)",
|
||||||
asFUNCTION(AddVolatileWrapper), asCALL_CDECL_OBJFIRST);
|
asFUNCTION(AddVolatileWrapper), asCALL_CDECL_OBJFIRST);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user