Browse Source

Merge pull request #1674 from timleader/next

Fix for PhysicsVehicleWheel::findAncestorAndBind()
Sean Taylor 11 years ago
parent
commit
82b44445fc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gameplay/src/PhysicsVehicleWheel.cpp

+ 2 - 2
gameplay/src/PhysicsVehicleWheel.cpp

@@ -129,8 +129,8 @@ void PhysicsVehicleWheel::findAncestorAndBind()
     Node* m;
     for (Node* n = getNode(); n && !host; n = n->getParent())
     {
-        // Visit siblings before n
-        for (m = n->getPreviousSibling(); m && !host; m = m->getPreviousSibling())
+        // Visit previous siblings starting with n
+		for (m = n; m && !host; m = m->getPreviousSibling())
         {
             host = findVehicle(m);
         }