Fixes BattleParty::GetParty not returning valid value in AngelScript
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
bb4fd8456c
commit
a6771353b0
|
@ -27,10 +27,12 @@ void RegisterParty::RegisterPartyClass(asIScriptEngine* engine) {
|
||||||
Ensure(r >= 0);
|
Ensure(r >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BORROWED_PTR_GETTER_FUNC(CreatureLib::Battling::BattleParty, CreatureLib::Battling::CreatureParty, GetParty);
|
||||||
|
|
||||||
void RegisterParty::RegisterBattleParty(asIScriptEngine* engine) {
|
void RegisterParty::RegisterBattleParty(asIScriptEngine* engine) {
|
||||||
auto r = engine->RegisterObjectType("BattleParty", 0, asOBJ_REF | asOBJ_NOCOUNT);
|
auto r = engine->RegisterObjectType("BattleParty", 0, asOBJ_REF | asOBJ_NOCOUNT);
|
||||||
Ensure(r >= 0);
|
Ensure(r >= 0);
|
||||||
r = engine->RegisterObjectMethod("BattleParty", "Party@ get_Party() const property",
|
r = engine->RegisterObjectMethod("BattleParty", "Party@ get_Party() const property", asFUNCTION(GetPartyWrapper),
|
||||||
asMETHOD(CreatureLib::Battling::BattleParty, GetParty), asCALL_THISCALL);
|
asCALL_CDECL_OBJFIRST);
|
||||||
Ensure(r >= 0);
|
Ensure(r >= 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue