ソースを参照

Fixed a missed assert for the api change.

seanpaultaylor 11 年 前
コミット
7898894b1d
1 ファイル変更1 行追加1 行削除
  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;