diff options
author | Paul Gilbert | 2019-08-09 17:06:25 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-08-09 17:06:35 -0700 |
commit | 05535616b4a168c5a8dcfc639dbef401756c33de (patch) | |
tree | b629e87444c2e3bfe7bbd5487b73caf5d9c85367 /engines | |
parent | 2396a463df76f458ec6b526544b8eda17e1f518a (diff) | |
download | scummvm-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.cpp | 3 |
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: |