diff --git a/src/mobility/random-walk-2d-mobility-model.cc b/src/mobility/random-walk-2d-mobility-model.cc index 158a32244..b6db1b5fa 100644 --- a/src/mobility/random-walk-2d-mobility-model.cc +++ b/src/mobility/random-walk-2d-mobility-model.cc @@ -41,9 +41,9 @@ g_mode ("RandomWalk2dMode", "change the current speed and direction", RandomWalk2dMobilityModelParameters::MODE_DISTANCE, "Distance", RandomWalk2dMobilityModelParameters::MODE_TIME, "Time", - 0, 0); + 0, (void*)0); -static IntegerDefaultValue +static NumericDefaultValue g_modeDistance ("RandomWalk2dDistance", "Change current direction and speed after moving this distance.", 2.0);