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