diff --git a/modules/entity_spell_system/data/items/equipment_data.cpp b/modules/entity_spell_system/data/items/equipment_data.cpp index 0c0e5202a..d3bf228e3 100644 --- a/modules/entity_spell_system/data/items/equipment_data.cpp +++ b/modules/entity_spell_system/data/items/equipment_data.cpp @@ -50,7 +50,9 @@ Ref EquipmentData::get_item(int index) { } EquipmentData::EquipmentData() { - _entries.resize(ESS::get_singleton()->equip_slot_get_count()); + if (ESS::get_singleton()) { + _entries.resize(ESS::get_singleton()->equip_slot_get_count()); + } } EquipmentData::~EquipmentData() {