diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp index 139b6d2..0ffce0d 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterPokemonClass.cpp @@ -108,10 +108,10 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) { REGISTER_GETTER("Pokemon", "float get_Weight() const property", CreatureLib::Battling::Creature, GetWeight); REGISTER_GETTER("Pokemon", "float get_Height() const property", CreatureLib::Battling::Creature, GetHeight); - auto r = engine->RegisterObjectMethod("Pokemon", "void set_Weight(float value) const property", + auto r = engine->RegisterObjectMethod("Pokemon", "void set_Weight(float value) property", asMETHOD(PkmnLib::Battling::Pokemon, SetWeight), asCALL_THISCALL); Ensure(r >= 0); - r = engine->RegisterObjectMethod("Pokemon", "void set_Height(float value) const property", + r = engine->RegisterObjectMethod("Pokemon", "void set_Height(float value) property", asMETHOD(PkmnLib::Battling::Pokemon, SetHeight), asCALL_THISCALL); Ensure(r >= 0);