addGrid extra slots creation fix

This commit is contained in:
MihailRis 2024-01-21 19:46:35 +03:00
parent aa93c27159
commit 6430121cf2

View File

@ -96,6 +96,8 @@ void InventoryBuilder::addGrid(
for (int row = 0; row < rows; row++) {
for (int col = 0; col < cols; col++) {
if (row * cols + col >= count)
return;
glm::vec2 position (
col * (slotSize + interval) + padding,
row * (slotSize + interval) + padding