aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/script_lol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/script_lol.cpp')
-rw-r--r--engines/kyra/script_lol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp
index 3d20e4112c..e6193c0b4e 100644
--- a/engines/kyra/script_lol.cpp
+++ b/engines/kyra/script_lol.cpp
@@ -675,7 +675,7 @@ int LoLEngine::olol_initMonster(EMCState *script) {
calcCoordinates(x, y, stackPos(0), stackPos(1), stackPos(2));
uint16 w = _monsterProperties[stackPos(4)].maxWidth;
- if (checkBlockBeforeMonsterPlacement(x, y, w, 7, 7))
+ if (checkBlockBeforeObjectPlacement(x, y, w, 7, 7))
return -1;
for (uint8 i = 0; i < 30; i++) {
@@ -698,7 +698,7 @@ int LoLEngine::olol_initMonster(EMCState *script) {
l->field_25 = l->properties->unk6[0];
l->field_27 = _rnd.getRandomNumberRng(1, calcMonsterSkillLevel(l->id | 0x8000, 8)) - 1;
- l->unk4 = 2;
+ l->flyingHeight = 2;
l->flags = stackPos(5);
l->assignedItems = 0;