- fixed division by 0 in ActorMover code.

This commit is contained in:
Christoph Oelckers 2017-02-01 00:20:08 +01:00
parent 3d147a032c
commit ccacc23905

View file

@ -287,7 +287,7 @@ class PathFollower : Actor
if (Interpolate ()) if (Interpolate ())
{ {
Time += (8. / (CurrNode.args[1] * TICRATE)); Time += (8. / (max(1, CurrNode.args[1]) * TICRATE));
if (Time > 1.) if (Time > 1.)
{ {
Time -= 1.; Time -= 1.;