Venugh/TrinityCore — comment on commit 7820ca95033140e3fae59a4d62ccd6eaf35c75a4
File: src/server/game/Movement/MovementGenerators/RandomMovementGenerator.cpp line 42
By gyullo:

Thats beacuase before there is a cal that fill wander_distance
creature.GetRespawnPosition(respX, respY, respZ, &respO, &wander_distance);

I think dist must be initialized with that function