Make Battle and Battleside getters on Pokemon in Angelscript not const.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
bee9170603
commit
301c28d7a7
|
@ -187,10 +187,10 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
|
||||||
asCALL_THISCALL);
|
asCALL_THISCALL);
|
||||||
Ensure(r >= 0);
|
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);
|
asFUNCTION(GetBattleWrapper), asCALL_CDECL_OBJFIRST);
|
||||||
Ensure(r >= 0);
|
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);
|
asFUNCTION(GetBattleSideWrapper), asCALL_CDECL_OBJFIRST);
|
||||||
Ensure(r >= 0);
|
Ensure(r >= 0);
|
||||||
}
|
}
|
Loading…
Reference in New Issue