From b40e0047240b8fdd7cfb7e91ef7781b6383767b1 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 20 Nov 2021 14:42:06 +0100 Subject: [PATCH] Make Pokemon::HasVolatile const in Angelscript. --- .../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 9567445..3bb87f7 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp @@ -184,7 +184,7 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) { r = engine->RegisterObjectMethod("Pokemon", "int8 GetStatBoost(Statistic stat) const", asMETHOD(PkmnLib::Battling::Pokemon, GetStatBoost), asCALL_THISCALL); Ensure(r >= 0); - r = engine->RegisterObjectMethod("Pokemon", "bool HasVolatile(const constString &in name)", + r = engine->RegisterObjectMethod("Pokemon", "bool HasVolatile(const constString &in name) const", asMETHOD(PkmnLib::Battling::Pokemon, HasVolatileScript), asCALL_THISCALL); Ensure(r >= 0); r = engine->RegisterObjectMethod("Pokemon", "ref@ AddVolatile(const constString &in name)",