From 5cd5059e42239e7ef2488e4a2154189f2d3fc417 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Wed, 6 May 2020 11:36:56 +0200 Subject: [PATCH] Adds C Interface for destructor of different growthrates. --- CInterface/Library/GrowthRate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CInterface/Library/GrowthRate.cpp b/CInterface/Library/GrowthRate.cpp index 630af2f..00c69d9 100644 --- a/CInterface/Library/GrowthRate.cpp +++ b/CInterface/Library/GrowthRate.cpp @@ -15,6 +15,8 @@ export uint8_t CreatureLib_ExternGrowthRate_Construct(GrowthRate*& out, uint8_t }; export void CreatureLib_GrowthRate_Destruct(const GrowthRate* p) { delete p; } +export void CreatureLib_LookupGrowthRate_Destruct(const LookupGrowthRate* p) { delete p; } +export void CreatureLib_ExternGrowthRate_Destruct(const ExternGrowthRate* p) { delete p; } export uint8_t CreatureLib_GrowthRate_CalculateLevel(uint8_t& out, const GrowthRate* p, uint32_t experience) { Try(out = p->CalculateLevel(experience);)