HomeWildfire Games

Avoid overflow in UnitMotion.

Description

Avoid overflow in UnitMotion.

ComputeTargetPosition called Dot() with large enough vectors that it overflowed. Avoid that by not actually doing the full dot product.

Reported by: Itms

Fixes #5852

Differential Revision: https://code.wildfiregames.com/D3061