summaryrefslogtreecommitdiff
path: root/src/gui/windows/killstats.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-24 19:24:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-24 19:24:43 +0300
commit510af795924d874eb53b840f88dbabbe632a2ae8 (patch)
tree8eea6702b0fad341f8bf6adf8d82a5e878148b4d /src/gui/windows/killstats.cpp
parentca69cb53048d23bacb7f57988086469b1044b365 (diff)
downloadplus-510af795924d874eb53b840f88dbabbe632a2ae8.tar.gz
plus-510af795924d874eb53b840f88dbabbe632a2ae8.tar.bz2
plus-510af795924d874eb53b840f88dbabbe632a2ae8.tar.xz
plus-510af795924d874eb53b840f88dbabbe632a2ae8.zip
Fix possible division by zero in kill stats window.
Diffstat (limited to 'src/gui/windows/killstats.cpp')
-rw-r--r--src/gui/windows/killstats.cpp2
1 files changed, 1 insertions, 1 deletions
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"),