aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/src/TripletScheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NvCloth/src/TripletScheduler.cpp')
-rw-r--r--NvCloth/src/TripletScheduler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/NvCloth/src/TripletScheduler.cpp b/NvCloth/src/TripletScheduler.cpp
index e051131..999be0e 100644
--- a/NvCloth/src/TripletScheduler.cpp
+++ b/NvCloth/src/TripletScheduler.cpp
@@ -207,7 +207,10 @@ void cloth::TripletScheduler::warp(uint32_t numParticles, uint32_t warpWidth)
numReplays += set.mNumReplays[i] == set.mNumConflicts[i][warpMask & (*tIt)[i]];
if (minReplays > numReplays)
- minReplays = numReplays, bestIndex = setIndex;
+ {
+ minReplays = numReplays;
+ bestIndex = setIndex;
+ }
}
// add new set if none found