From 301c28d7a7c80d4a08cea476a9c2ff863a08bc63 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 27 Mar 2021 10:06:23 +0100 Subject: [PATCH] Make Battle and Battleside getters on Pokemon in Angelscript not const. --- .../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 4b12a99..c1fbec3 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp @@ -187,10 +187,10 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) { asCALL_THISCALL); Ensure(r >= 0); - r = engine->RegisterObjectMethod("Pokemon", "const Battle@ get_Battle() const property", + r = engine->RegisterObjectMethod("Pokemon", "Battle@ get_Battle() const property", asFUNCTION(GetBattleWrapper), asCALL_CDECL_OBJFIRST); Ensure(r >= 0); - r = engine->RegisterObjectMethod("Pokemon", "const BattleSide@ get_BattleSide() const property", + r = engine->RegisterObjectMethod("Pokemon", "BattleSide@ get_BattleSide() const property", asFUNCTION(GetBattleSideWrapper), asCALL_CDECL_OBJFIRST); Ensure(r >= 0); } \ No newline at end of file