From c2d680c5b5cb24e1ce41f5daf4a4d48146562a27 Mon Sep 17 00:00:00 2001 From: "Michael R. Cook" Date: Sat, 20 Jan 2018 19:47:53 +0100 Subject: [PATCH] Bugfix: calculate kill exp correctly Now using correct int type for calculation --- src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.cpp b/src/player.cpp index 73d05f07..80f854f8 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -1080,7 +1080,7 @@ bool playerSavingThrow() { } void playerGainKillExperience(Creature_t const &creature) { - uint16_t exp = creature.kill_exp_value * creature.level; + int32_t exp = creature.kill_exp_value * creature.level; int32_t quotient = exp / py.misc.level; int32_t remainder = exp % py.misc.level;