diff options
| author | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
| commit | ca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch) | |
| tree | b06b9eec03f34344ef8fc31aa147b2714d3962ee /NvCloth/src/SwFabric.cpp | |
| parent | Forced rename of platform folders in cmake dir. Git didn't pick this up before. (diff) | |
| download | nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip | |
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'NvCloth/src/SwFabric.cpp')
| -rw-r--r-- | NvCloth/src/SwFabric.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NvCloth/src/SwFabric.cpp b/NvCloth/src/SwFabric.cpp index 9830398..b8d617f 100644 --- a/NvCloth/src/SwFabric.cpp +++ b/NvCloth/src/SwFabric.cpp @@ -162,7 +162,7 @@ uint32_t cloth::SwFabric::getNumStiffnessValues() const uint32_t cloth::SwFabric::getNumSets() const { - return uint32_t(mSets.size() - 1); + return uint32_t(physx::PxMax(0, static_cast<int>(mSets.size() - 1))); } uint32_t cloth::SwFabric::getNumIndices() const |