Browse Source

Merge pull request #1665 from seanpaultaylor/next

Fixed a missed assert for the api change.
Sean Taylor 11 years ago
parent
commit
c4c848bea9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gameplay/src/PhysicsVehicleWheel.cpp

+ 1 - 1
gameplay/src/PhysicsVehicleWheel.cpp

@@ -175,7 +175,7 @@ void PhysicsVehicleWheel::setHost(PhysicsVehicle* host, unsigned int indexInHost
 void PhysicsVehicleWheel::addToVehicle(btRaycastVehicle* vehicle)
 {
     GP_ASSERT(_host);
-    GP_ASSERT(_host->getNumWheels() == vehicle->getNumWheels() + 1);
+    GP_ASSERT(_host->getWheelCount() == vehicle->getNumWheels() + 1);
 
     // Use safe defaults for now. Properties are assigned elsewhere.
     btRaycastVehicle::btVehicleTuning tuning;