Commit b51e05a8 authored by peastman's avatar peastman
Browse files

Merge pull request #791 from peastman/bug

Check for nan positions was being done incorrectly
parents f83da363 f75bf1bd
...@@ -169,8 +169,8 @@ public: ...@@ -169,8 +169,8 @@ public:
// Check for invalid positions. // Check for invalid positions.
for (int i = 4*start; i < 4*end; i++) for (int i = 4*start; i < 4*end; i += 4)
if (posq[i] != posq[i]) if (posq[i] != posq[i] || posq[i+1] != posq[i+1] || posq[i+2] != posq[i+2])
positionsValid = false; positionsValid = false;
// Clear the forces. // Clear the forces.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment