diff --git a/OpenRA.Game/Support/PerfItem.cs b/OpenRA.Game/Support/PerfItem.cs index 76f3ab50dc..bd314cd4e1 100644 --- a/OpenRA.Game/Support/PerfItem.cs +++ b/OpenRA.Game/Support/PerfItem.cs @@ -62,7 +62,7 @@ namespace OpenRA.Support i++; } - return sum / i; + return i == 0 ? sum : sum / i; } public double LastValue