Avoid float zero division (#19380)

This commit is contained in:
Rochet2
2017-03-29 18:44:25 +02:00
committed by Shauren
parent f8557a2876
commit ae17f1c9e9
@@ -26779,6 +26779,8 @@ float Player::GetAverageItemLevel() const
++count;
}
if (count == 0)
return 0;
return ((float)sum) / count;
}