From 3fb32c33ecc8da7b955c9f8b6f9ead7ea4cd7976 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 13 May 2021 13:51:21 +0200 Subject: [PATCH] Fix MoveTurnChoice.GetUser returning a const in angelscript. --- .../AngelScript/TypeRegistry/Battling/RegisterTurnChoices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterTurnChoices.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterTurnChoices.cpp index f4044f7..0500377 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterTurnChoices.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterTurnChoices.cpp @@ -45,7 +45,7 @@ void RegisterTurnChoices::RegisterMoveTurnChoice(asIScriptEngine* engine) { r = engine->RegisterObjectMethod("MoveTurnChoice", "TurnChoiceKind get_Kind() const property", asMETHOD(CreatureLib::Battling::AttackTurnChoice, GetKind), asCALL_THISCALL); Ensure(r >= 0); - r = engine->RegisterObjectMethod("MoveTurnChoice", "const Pokemon@ get_User() const property", + r = engine->RegisterObjectMethod("MoveTurnChoice", "Pokemon@ get_User() const property", asFUNCTION(GetUserWrapper), asCALL_CDECL_OBJFIRST); Ensure(r >= 0); r = engine->RegisterObjectMethod("MoveTurnChoice", "LearnedMove@ get_Move() const property",