[Scummvm-cvs-logs] scummvm master -> 1758845af5e0aa09f1ab253710e2037a7dfc9e46

lordhoto lordhoto at gmail.com
Sat Jan 21 19:32:57 CET 2012

This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

1758845af5 KYRA: Fix out of bounds access caused by a typo.

Commit: 1758845af5e0aa09f1ab253710e2037a7dfc9e46
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2012-01-21T10:31:12-08:00

Commit Message:
KYRA: Fix out of bounds access caused by a typo.

Thanks to dhewg for pointing this one out.

Changed paths:

diff --git a/engines/kyra/sprites_eob.cpp b/engines/kyra/sprites_eob.cpp
index dd49735..360d314 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);

More information about the Scummvm-git-logs mailing list