diff --git a/rts/Sim/MoveTypes/MoveMath/MoveMath.cpp b/rts/Sim/MoveTypes/MoveMath/MoveMath.cpp index 32ca040bb2..276894036c 100644 --- a/rts/Sim/MoveTypes/MoveMath/MoveMath.cpp +++ b/rts/Sim/MoveTypes/MoveMath/MoveMath.cpp @@ -33,7 +33,7 @@ MoveTypes::CheckCollisionQuery::CheckCollisionQuery(const CSolidObject* ref) MoveTypes::CheckCollisionQuery::CheckCollisionQuery(const MoveDef* refMoveDef, float3 testPos) : moveDef(refMoveDef) - , pos(testPos) + , pos(testPos.cClampInBounds()) { UpdateElevationForPos(pos); }