mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-04-19 21:33:15 +02:00
Add destructor to simple level stat data.
This commit is contained in:
parent
2c99111860
commit
9ede69c7b4
@ -53,6 +53,10 @@ SimpleLevelStatData::SimpleLevelStatData() {
|
||||
}
|
||||
}
|
||||
|
||||
SimpleLevelStatData::~SimpleLevelStatData() {
|
||||
_stat_per_level.clear();
|
||||
}
|
||||
|
||||
bool SimpleLevelStatData::_set(const StringName &p_name, const Variant &p_value) {
|
||||
if (ESS::get_instance()->stat_is_property(p_name)) {
|
||||
int stat_id = ESS::get_instance()->stat_get_property_id(p_name);
|
||||
|
@ -37,6 +37,7 @@ public:
|
||||
int _get_stat_diff(int stat, int old_level, int new_level);
|
||||
|
||||
SimpleLevelStatData();
|
||||
~SimpleLevelStatData();
|
||||
|
||||
protected:
|
||||
bool _set(const StringName &p_name, const Variant &p_value);
|
||||
|
Loading…
Reference in New Issue
Block a user