diff --git a/source/Interfaces/Inventory.cpp b/source/Interfaces/Inventory.cpp index 0ab67b49..490b8fc2 100644 --- a/source/Interfaces/Inventory.cpp +++ b/source/Interfaces/Inventory.cpp @@ -20,7 +20,8 @@ namespace i_2D { mItems.clear(); mItems.resize(interfaceAgentInventory.size()); - std::ranges::copy(interfaceAgentInventory,mItems.begin()); + std::copy(interfaceAgentInventory.begin(), interfaceAgentInventory.end(), + mItems.begin()); // Set row & col sizes if (mWorldSize.x > 1800) { @@ -96,4 +97,4 @@ namespace i_2D { } return s1; } -} \ No newline at end of file +}