aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-05-14 19:43:41 -0400
committerPaul Gilbert2018-05-14 19:43:41 -0400
commitd5444f2dd751f8a1c74c9ef7687eb6cf1590db59 (patch)
tree6aa67e52bba2644662d6b79cad73ad3c8c76f344
parent1bfd7352dc4db3695283445e6f7b4b341c3444fa (diff)
downloadscummvm-rg350-d5444f2dd751f8a1c74c9ef7687eb6cf1590db59.tar.gz
scummvm-rg350-d5444f2dd751f8a1c74c9ef7687eb6cf1590db59.tar.bz2
scummvm-rg350-d5444f2dd751f8a1c74c9ef7687eb6cf1590db59.zip
XEEN: Fix accumulation of gold & gems from defeated enemies
-rw-r--r--engines/xeen/combat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index bd39779b6e..4dd2ac6e8a 100644
--- a/engines/xeen/combat.cpp
+++ b/engines/xeen/combat.cpp
@@ -1490,8 +1490,8 @@ void Combat::attack2(int damage, RangeType rangeType) {
giveExperience(monsterData._experience);
if (party._mazeId != 85) {
- party._treasure._gold = monsterData._gold;
- party._treasure._gems = monsterData._gems;
+ party._treasure._gold += monsterData._gold;
+ party._treasure._gems += monsterData._gems;
if (!ccNum && monster._spriteId == 89) {
// Xeen's Scepter of Temporal Distortion