diff --git a/examples/island/Island.cpp b/examples/island/Island.cpp index c8d324c9d..11982309f 100644 --- a/examples/island/Island.cpp +++ b/examples/island/Island.cpp @@ -398,7 +398,7 @@ void generateTerrain(sf::Vertex* buffer) { const std::lock_guard lock(workQueueMutex); - if (workQueue.empty()) + if (pendingWorkCount == 0u) break; }