Skip to content

Commit

Permalink
I forgot this was 1-indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
sandsmark committed May 29, 2020
1 parent ac3b3c6 commit cb0fd76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ItemData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ InventoryItem::Aspect ItemData::createInventoryItemPart(const InventoryItem &inv
qWarning() << "Invalid object name" << objectName;
return {};
}
part.index++; // it is 1-indexed
part.bits = requiredBits(inventoryItem.partsCategory, inventoryItem.version);
part.val = getItemAsset(inventoryItem.partsCategory, part.index - 1);

Expand Down

0 comments on commit cb0fd76

Please sign in to comment.