aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-02-18 16:45:49 -0500
committerPaul Gilbert2018-02-18 16:47:52 -0500
commita40da92507a74ad942d96dc817fa6dae5bfa7e2c (patch)
treef99d69efb7a4be0fadcb7688a5061cb6e2780b11 /engines
parent4d91cf75bae91a34f3ee1e61b347823c84473ce7 (diff)
downloadscummvm-rg350-a40da92507a74ad942d96dc817fa6dae5bfa7e2c.tar.gz
scummvm-rg350-a40da92507a74ad942d96dc817fa6dae5bfa7e2c.tar.bz2
scummvm-rg350-a40da92507a74ad942d96dc817fa6dae5bfa7e2c.zip
XEEN: Fix randomly rolling attribute values
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/dialogs_create_char.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/dialogs_create_char.cpp b/engines/xeen/dialogs_create_char.cpp
index aeadc360f2..d6b4996bf6 100644
--- a/engines/xeen/dialogs_create_char.cpp
+++ b/engines/xeen/dialogs_create_char.cpp
@@ -380,7 +380,7 @@ void CreateCharacterDialog::throwDice(uint attribs[TOTAL_ATTRIBUTES], bool allow
// Assign random amounts to each attribute
for (int idx1 = 0; idx1 < 3; ++idx1) {
for (int idx2 = 0; idx2 < TOTAL_ATTRIBUTES; ++idx2) {
- attribs[idx1] += _vm->getRandomNumber(10, 79) / 10;
+ attribs[idx2] += _vm->getRandomNumber(10, 79) / 10;
}
}