aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-02-01 19:56:30 +0000
committerJohannes Schickel2009-02-01 19:56:30 +0000
commit1626c624bacd688c2f7271945719611133e10a5d (patch)
tree85082acbb95710c125f466ae36ca3390f479ad63 /engines
parentdda109ead30d3d97d1f69cb017d0a395dd2a9898 (diff)
downloadscummvm-rg350-1626c624bacd688c2f7271945719611133e10a5d.tar.gz
scummvm-rg350-1626c624bacd688c2f7271945719611133e10a5d.tar.bz2
scummvm-rg350-1626c624bacd688c2f7271945719611133e10a5d.zip
Fixed out of bounds memory access.
svn-id: r36180
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/script_lol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp
index 00ef33e3cf..717290e455 100644
--- a/engines/kyra/script_lol.cpp
+++ b/engines/kyra/script_lol.cpp
@@ -498,7 +498,7 @@ int LoLEngine::olol_loadMonsterProperties(EMCState *script) {
stackPos(28), stackPos(29), stackPos(30), stackPos(31), stackPos(32), stackPos(33), stackPos(34),
stackPos(35), stackPos(36), stackPos(37), stackPos(38), stackPos(39), stackPos(40), stackPos(41));
- MonsterProperty *l = &_monsterProperties[stackPos(0) * 83];
+ MonsterProperty *l = &_monsterProperties[stackPos(0)];
l->id = stackPos(1) & 0xff;
int shpWidthMax = 0;