aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk/graphics.cpp')
-rw-r--r--engines/mohawk/graphics.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/mohawk/graphics.cpp b/engines/mohawk/graphics.cpp
index 99822857ba..9121b5a571 100644
--- a/engines/mohawk/graphics.cpp
+++ b/engines/mohawk/graphics.cpp
@@ -648,16 +648,15 @@ void RivenGraphics::copyImageToScreen(uint16 image, uint32 left, uint32 top, uin
void RivenGraphics::drawPLST(uint16 x) {
Common::SeekableReadStream* plst = _vm->getResource(ID_PLST, _vm->getCurCard());
- uint16 index, id, left, top, right, bottom;
uint16 recordCount = plst->readUint16BE();
for (uint16 i = 0; i < recordCount; i++) {
- index = plst->readUint16BE();
- id = plst->readUint16BE();
- left = plst->readUint16BE();
- top = plst->readUint16BE();
- right = plst->readUint16BE();
- bottom = plst->readUint16BE();
+ uint16 index = plst->readUint16BE();
+ uint16 id = plst->readUint16BE();
+ uint16 left = plst->readUint16BE();
+ uint16 top = plst->readUint16BE();
+ uint16 right = plst->readUint16BE();
+ uint16 bottom = plst->readUint16BE();
// We are also checking here to make sure we haven't drawn the image yet on screen.
// This fixes problems with drawing PLST 1 twice and some other images twice. PLST