slots-grid coord fix

This commit is contained in:
MihailRis 2024-02-12 18:40:47 +03:00
parent 87f50f79c9
commit e9cbb04090
2 changed files with 2 additions and 2 deletions

View File

@ -207,4 +207,4 @@ const ubyte* ByteReader::pointer() const {
void ByteReader::skip(size_t n) {
pos += n;
}
}

View File

@ -396,7 +396,7 @@ static void readSlotsGrid(InventoryView* view, gui::UiXmlReader& reader, xml::xm
}
SlotLayout slotLayout = layout;
slotLayout.index = startIndex + idx;
slotLayout.position = glm::vec2(
slotLayout.position += glm::vec2(
padding + col * (slotSize + interval),
padding + row * (slotSize + interval)
);