From f5032bebb11414f59e715e4d3a99df197f11344b Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 24 Oct 2021 15:48:48 +0200 Subject: [PATCH] Fixes calling convention for HasVolatile in angelscript. --- .../AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp index 4421da1..3cacc49 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp @@ -148,7 +148,7 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) { asMETHOD(PkmnLib::Battling::Pokemon, GetStatBoost), asCALL_THISCALL); Ensure(r >= 0); 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); r = engine->RegisterObjectMethod("Pokemon", "ref@ AddVolatile(const constString &in name)", asFUNCTION(AddVolatileWrapper), asCALL_CDECL_OBJFIRST);