diff --git a/engines/kyra/scene_lol.cpp b/engines/kyra/scene_lol.cpp index e860bb3f5a4..2c6437605ee 100644 --- a/engines/kyra/scene_lol.cpp +++ b/engines/kyra/scene_lol.cpp @@ -692,10 +692,11 @@ void LoLEngine::resetItems(int flag) { for (int i = 0; i < 1024; i++) { _levelBlockProperties[i].field_8 = 5; uint16 id = _levelBlockProperties[i].itemIndex; - LVL * r = 0; + LVL *r = 0; while (id & 0x8000) { - LVL * r = (LVL*) cmzGetItemOffset(id); + r = (LVL*)cmzGetItemOffset(id); + assert(r); id = r->itemIndexUnk; } diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp index 5c559242eed..2ced8b6bf75 100644 --- a/engines/kyra/script_lol.cpp +++ b/engines/kyra/script_lol.cpp @@ -364,7 +364,6 @@ int LoLEngine::o2_getUnkArrayVal(EMCState *script) { } int LoLEngine::o2_setUnkArrayVal(EMCState *script) { - int a=stackPos(0); _unkEMC46[stackPos(0)] = stackPos(1); return 1; }