fixed Windows build for networking branch

This commit is contained in:
2026-07-14 10:54:43 -07:00
parent 21e2add09a
commit 43b9d829c8
7 changed files with 19 additions and 15 deletions
+2 -2
View File
@@ -552,13 +552,13 @@ bool AbstractContainerMenu::isPauseScreen()
void AbstractContainerMenu::setItem(unsigned int slot, shared_ptr<ItemInstance> item)
{
if (slot >= slots->size()) return;
if (slot >= slots.size()) return;
getSlot(slot)->set(item);
}
void AbstractContainerMenu::setAll(ItemInstanceArray *items)
{
for (unsigned int i = 0; i < items->length && i < slots->size(); i++)
for (unsigned int i = 0; i < items->length && i < slots.size(); i++)
{
getSlot(i)->set( (*items)[i] );
}