Skip to content

Commit

Permalink
Revert ranges copy to help with compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
FergusonAJ committed Dec 13, 2023
1 parent d2f42cb commit 853997a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/Interfaces/Inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -96,4 +97,4 @@ namespace i_2D {
}
return s1;
}
}
}

0 comments on commit 853997a

Please sign in to comment.