1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Fix Linux builds

This commit is contained in:
Ted John
2018-05-28 00:31:37 +01:00
parent c28a42d877
commit 376b6d04d8
3 changed files with 17 additions and 5 deletions

View File

@@ -476,7 +476,7 @@ private:
std::vector<const ObjectRepositoryItem *> requiredObjects;
std::vector<rct_object_entry> missingObjects;
for (sint32 i = 0; i < count; i++)
for (size_t i = 0; i < count; i++)
{
const rct_object_entry * entry = &entries[i];
const ObjectRepositoryItem * ori = nullptr;
@@ -511,9 +511,9 @@ private:
auto begin = n * partitionSize;
auto end = std::min(items.size(), begin + partitionSize);
threads.emplace_back(
[func, &items](size_t begin, size_t end)
[func](size_t pbegin, size_t pend)
{
for (size_t i = begin; i < end; i++)
for (size_t i = pbegin; i < pend; i++)
{
func(i);
}