diff options
author | Johannes Schickel | 2012-01-21 19:31:12 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-01-21 19:31:12 +0100 |
commit | 1758845af5e0aa09f1ab253710e2037a7dfc9e46 (patch) | |
tree | 0c41cb5601e8437549dac45913c14a9667000715 /engines/kyra | |
parent | cc98a1acea9998d788992d458738cc1e2dac9d4d (diff) | |
download | scummvm-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.cpp | 2 |
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); |