diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-24 19:24:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-24 19:24:43 +0300 |
commit | 510af795924d874eb53b840f88dbabbe632a2ae8 (patch) | |
tree | 8eea6702b0fad341f8bf6adf8d82a5e878148b4d /src/gui | |
parent | ca69cb53048d23bacb7f57988086469b1044b365 (diff) | |
download | manaplus-510af795924d874eb53b840f88dbabbe632a2ae8.tar.gz manaplus-510af795924d874eb53b840f88dbabbe632a2ae8.tar.bz2 manaplus-510af795924d874eb53b840f88dbabbe632a2ae8.tar.xz manaplus-510af795924d874eb53b840f88dbabbe632a2ae8.zip |
Fix possible division by zero in kill stats window.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/killstats.cpp | 2 |
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"), |