aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2019-08-09 17:06:25 -0700
committerPaul Gilbert2019-08-09 17:06:35 -0700
commit05535616b4a168c5a8dcfc639dbef401756c33de (patch)
treeb629e87444c2e3bfe7bbd5487b73caf5d9c85367 /engines
parent2396a463df76f458ec6b526544b8eda17e1f518a (diff)
downloadscummvm-rg350-05535616b4a168c5a8dcfc639dbef401756c33de.tar.gz
scummvm-rg350-05535616b4a168c5a8dcfc639dbef401756c33de.tar.bz2
scummvm-rg350-05535616b4a168c5a8dcfc639dbef401756c33de.zip
XEEN: Fix the random generation of misc items
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/character.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/xeen/character.cpp b/engines/xeen/character.cpp
index 47ef0b8ecd..1712bbb244 100644
--- a/engines/xeen/character.cpp
+++ b/engines/xeen/character.cpp
@@ -1170,7 +1170,8 @@ ItemCategory Character::makeItem(int p1, int itemIndex, int p3) {
break;
case 4:
- miscCharges = vm->getRandomNumber(Res.MAKE_ITEM_ARR5[p1][0], Res.MAKE_ITEM_ARR5[p1][1]);
+ miscId = vm->getRandomNumber(Res.MAKE_ITEM_ARR5[p1][0], Res.MAKE_ITEM_ARR5[p1][1]);
+ miscCharges = vm->getRandomNumber(1, 8);
break;
default: