Add default constructor for EquipmentItem

Change struct constructors to proper constructors.
This commit is contained in:
David Markowitz
2023-06-27 02:01:43 -07:00
parent c2fe7f6205
commit 0544eeba1f
2 changed files with 20 additions and 16 deletions

View File

@@ -6,8 +6,16 @@
/**
* An item that's equipped, generally as a smaller return type than the regular Item class
*/
struct EquippedItem
{
struct EquippedItem {
EquippedItem() {}
EquippedItem(const LWOOBJID& id, const LOT lot, const uint32_t count, const uint32_t slot, const std::vector<LDFBaseData*>& config = {}) {
this->id = id;
this->lot = lot;
this->count = count;
this->slot = slot;
this->config = config;
}
/**
* The object ID of the equipped item
*/