From 249584bfc8550a1e7f4a13c136e2c53f96dc79ea Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 24 Aug 2021 20:37:17 +0200 Subject: [PATCH] Fixes angelscript interface for SetHeldItem. --- .../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 e534e5e..30f531c 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp @@ -125,7 +125,7 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) { asFUNCTION(HasHeldItem), asCALL_CDECL_OBJFIRST); Ensure(r >= 0); r = engine->RegisterObjectMethod( - "Pokemon", "void SetHeldItem(const string &in name)", + "Pokemon", "void SetHeldItem(const constString &in name)", asMETHODPR(PkmnLib::Battling::Pokemon, SetHeldItem, (const ArbUt::BasicStringView&), void), asCALL_THISCALL); Ensure(r >= 0); r = engine->RegisterObjectMethod("Pokemon", "void SetHeldItem(const Item@ item)",