From 95e1e32abecaf17c9e7373288b4cb9ee1903bfeb Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 21 Nov 2021 13:49:48 +0100 Subject: [PATCH] Fixes SetStatus and ChangeForme Angelscript functions. --- .../TypeRegistry/Battling/RegisterPokemonClass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp index e309637..bd190fa 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp @@ -199,12 +199,12 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) { r = engine->RegisterObjectMethod("Pokemon", "void ClearStatus() const", asMETHOD(PkmnLib::Battling::Pokemon, ClearStatus), asCALL_THISCALL); Ensure(r >= 0); - r = engine->RegisterObjectMethod("Pokemon", "void SetStatus(const constString& name)", + r = engine->RegisterObjectMethod("Pokemon", "void SetStatus(const constString &in name)", asMETHOD(PkmnLib::Battling::Pokemon, SetStatus), asCALL_THISCALL); Ensure(r >= 0); r = engine->RegisterObjectMethod( - "Pokemon", "void ChangeForme(const constString& name)", + "Pokemon", "void ChangeForme(const constString &in name)", asMETHODPR(PkmnLib::Battling::Pokemon, ChangeVariant, (const ArbUt::StringView&), void), asCALL_THISCALL); Ensure(r >= 0);