Fixes GetTalent C Interface for SpeciesVariant being broken
This commit is contained in:
parent
91ba93462b
commit
40e80d8100
|
@ -43,8 +43,8 @@ export uint16_t CreatureLib_SpeciesVariant_GetStatistic(SpeciesVariant* p, Creat
|
|||
}
|
||||
SIMPLE_GET_FUNC(SpeciesVariant, GetTalentCount, size_t);
|
||||
SIMPLE_GET_FUNC(SpeciesVariant, GetSecretTalentCount, size_t);
|
||||
export uint8_t CreatureLib_SpeciesVariant_GetTalent(SpeciesVariant* p, bool secret, uint8_t index) {
|
||||
return p->GetTalent(TalentIndex(secret, index));
|
||||
export uint8_t CreatureLib_SpeciesVariant_GetTalent(SpeciesVariant* p, bool secret, uint8_t index, const char*& out) {
|
||||
Try(out = p->GetTalent(TalentIndex(secret, index)).c_str();)
|
||||
}
|
||||
export const LearnableAttacks* CreatureLib_SpeciesVariant_GetLearnableAttacks(SpeciesVariant* p) {
|
||||
return p->GetLearnableAttacks().get();
|
||||
|
|
Loading…
Reference in New Issue