From 510af795924d874eb53b840f88dbabbe632a2ae8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 Mar 2015 19:24:43 +0300 Subject: Fix possible division by zero in kill stats window. --- src/gui/windows/killstats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/windows/killstats.cpp b/src/gui/windows/killstats.cpp index cd40d5d41..d4343411d 100644 --- a/src/gui/windows/killstats.cpp +++ b/src/gui/windows/killstats.cpp @@ -252,7 +252,7 @@ void KillStats::gainXp(int xp) mLine2->setCaption(strprintf(_("Exp: %d/%d Left: %d"), exp, xpNextLevel, xpNextLevel - exp)); - if (AvgExp >= 0.001F && AvgExp <= 0.001F) + if (AvgExp >= -0.001F && AvgExp <= 0.001F) { // TRANSLATORS: kill stats window label mLine3->setCaption(strprintf(_("1%% = %d exp, avg mob for 1%%: %s"), -- cgit v1.2.3-60-g2f50