fixed possible division by zero

This commit is contained in:
louis 2016-03-06 06:56:53 +01:00
parent 21ef5263ef
commit f769e1b244

View File

@ -277,6 +277,8 @@ void cAnimation::Shift(void) {
int frametime = 1000 / FPS;
int steps = (double)shifttime / (double)frametime;
if (steps < 2)
return;
int stepXLinear = 0;
int stepYLinear = 0;
if (shiftstart.X() == shiftend.X()) {