From 62eaf24f319b3405d706f21600fb0077dc8deac3 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 16 Feb 2020 17:00:52 +0100 Subject: [PATCH] Fix ChangeStatBoost using the wrong underlying function --- .../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 e83defc..9ae3eaa 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp @@ -145,7 +145,7 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) { asFUNCTION(GetMoves), asCALL_CDECL_OBJLAST); assert(r >= 0); r = engine->RegisterObjectMethod("Pokemon", "void ChangeStatBoost(Statistic stat, int8 amount)", - asMETHOD(PkmnLib::Battling::Pokemon, GetDisplaySpecies), asCALL_THISCALL); + asMETHOD(PkmnLib::Battling::Pokemon, ChangeStatBoost), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod("Pokemon", "const Species@ get_DisplaySpecies() const property", asMETHOD(PkmnLib::Battling::Pokemon, GetDisplaySpecies), asCALL_THISCALL);