mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-09 12:29:35 +01:00
Check if the ESS singleton exists in EquipmentData's constructor.
This commit is contained in:
parent
38fc0c402e
commit
87e792b920
@ -50,7 +50,9 @@ Ref<ItemInstance> EquipmentData::get_item(int index) {
|
||||
}
|
||||
|
||||
EquipmentData::EquipmentData() {
|
||||
if (ESS::get_singleton()) {
|
||||
_entries.resize(ESS::get_singleton()->equip_slot_get_count());
|
||||
}
|
||||
}
|
||||
|
||||
EquipmentData::~EquipmentData() {
|
||||
|
Loading…
Reference in New Issue
Block a user