mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-04-19 21:33:15 +02:00
Fix warning at startup.
This commit is contained in:
parent
d16e580bf4
commit
3d8010f028
@ -54,7 +54,8 @@ Ref<StatData> EntityClassData::get_stat_data() {
|
||||
return _inherits->get_stat_data();
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(!_stat_data.is_valid(), Ref<StatData>());
|
||||
if (!_stat_data.is_valid())
|
||||
return Ref<StatData>();
|
||||
|
||||
return _stat_data;
|
||||
}
|
||||
|
@ -246,7 +246,9 @@ void Entity::setup() {
|
||||
void Entity::_setup() {
|
||||
if (_s_entity_data.is_valid()) {
|
||||
_s_entity_data->setup_resources(this);
|
||||
|
||||
sinitialize_stats();
|
||||
|
||||
sets_entity_data_id(_s_entity_data->get_id());
|
||||
|
||||
sets_entity_type(_s_entity_data->get_entity_type());
|
||||
|
Loading…
Reference in New Issue
Block a user