aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/access/room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/access/room.cpp b/engines/access/room.cpp
index a33bc76e66..b9a07ea2ed 100644
--- a/engines/access/room.cpp
+++ b/engines/access/room.cpp
@@ -344,7 +344,7 @@ void Room::loadPlayField(int fileNum, int subfile) {
playData->_stream->read(_playField, _matrixSize);
// Load the plotter data
- int numWalls = READ_LE_UINT16(playData + 6);
+ int numWalls = READ_LE_UINT16(&header[6]);
int numBlocks = header[8];
_plotter.load(playData->_stream, numWalls, numBlocks);