- 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
1 changed files with 3 additions and 1 deletions

View File

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