- Fixed: Possible timer overflow in PowerTimeFreezer.

This commit is contained in:
Braden Obrzut 2016-01-30 00:18:38 -05:00
parent a34a7ace18
commit 5d6e8a7338

View file

@ -1500,7 +1500,9 @@ void APowerTimeFreezer::InitEffect()
} }
else else
{ {
EffectTics++; // Compensate for skipped tic, but beware of overflow.
if(EffectTics < INT_MAX)
EffectTics++;
} }
} }