Browse Source

- Fixed wrong type in Point-Force field.

MelvMay-GG 12 years ago
parent
commit
1730e31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/source/2d/controllers/PointForceController.cc

+ 1 - 1
engine/source/2d/controllers/PointForceController.cc

@@ -57,7 +57,7 @@ void PointForceController::initPersistFields()
 
     // Force.
     addProtectedField("Position", TypeVector2, Offset( mPosition, PointForceController), &defaultProtectedSetFn, &defaultProtectedGetFn, "The position of the attractor controller.");
-    addProtectedField("Radius", TypeVector2, Offset( mRadius, PointForceController), &defaultProtectedSetFn, &defaultProtectedGetFn, "The radius of the attractor circle centered on the attractors position.");
+    addProtectedField("Radius", TypeF32, Offset( mRadius, PointForceController), &defaultProtectedSetFn, &defaultProtectedGetFn, "The radius of the attractor circle centered on the attractors position.");
     addProtectedField("Force", TypeF32, Offset( mForce, PointForceController), &defaultProtectedSetFn, &defaultProtectedGetFn, "The force to apply to attact to the controller position.");
 }