aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2012-01-21 19:31:12 +0100
committerJohannes Schickel2012-01-21 19:31:12 +0100
commit1758845af5e0aa09f1ab253710e2037a7dfc9e46 (patch)
tree0c41cb5601e8437549dac45913c14a9667000715 /engines/kyra
parentcc98a1acea9998d788992d458738cc1e2dac9d4d (diff)
downloadscummvm-rg350-1758845af5e0aa09f1ab253710e2037a7dfc9e46.tar.gz
scummvm-rg350-1758845af5e0aa09f1ab253710e2037a7dfc9e46.tar.bz2
scummvm-rg350-1758845af5e0aa09f1ab253710e2037a7dfc9e46.zip
KYRA: Fix out of bounds access caused by a typo.
Thanks to dhewg for pointing this one out.
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sprites_eob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/sprites_eob.cpp b/engines/kyra/sprites_eob.cpp
index dd49735271..360d31458a 100644
--- a/engines/kyra/sprites_eob.cpp
+++ b/engines/kyra/sprites_eob.cpp
@@ -75,7 +75,7 @@ const uint8 *EoBCoreEngine::loadMonsterProperties(const uint8 *data) {
d->dmgDc[1].base = (int8)*data++;
d->dmgDc[2].times = *data++;
d->dmgDc[2].pips = *data++;
- d->dmgDc[3].base = (int8)*data++;
+ d->dmgDc[2].base = (int8)*data++;
d->immunityFlags = READ_LE_UINT16(data);
data += 2;
d->capsFlags = READ_LE_UINT16(data);