diff options
author | Strangerke | 2014-12-22 19:41:40 +0100 |
---|---|---|
committer | Strangerke | 2014-12-22 19:41:40 +0100 |
commit | d1bc69426eac2458b46ab7fede31c6dd71314ccb (patch) | |
tree | c3a7f7e936b954fab9b231151264046974f3455a /engines | |
parent | fc9595efdc22aecb77800dca29fbe23291855c48 (diff) | |
download | scummvm-rg350-d1bc69426eac2458b46ab7fede31c6dd71314ccb.tar.gz scummvm-rg350-d1bc69426eac2458b46ab7fede31c6dd71314ccb.tar.bz2 scummvm-rg350-d1bc69426eac2458b46ab7fede31c6dd71314ccb.zip |
ACCESS: Move variable from Room manager to local function
Diffstat (limited to 'engines')
-rw-r--r-- | engines/access/room.cpp | 6 | ||||
-rw-r--r-- | engines/access/room.h | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/engines/access/room.cpp b/engines/access/room.cpp index f7c2eabd0f..607259ec6f 100644 --- a/engines/access/room.cpp +++ b/engines/access/room.cpp @@ -370,9 +370,9 @@ void Room::loadPlayField(int fileNum, int subfile) { screen.loadRawPalette(playData->_stream); // Copy off the tile data - _tileSize = (int)header[2] << 8; - _tile = new byte[_tileSize]; - playData->_stream->read(_tile, _tileSize); + int tileSize = (int)header[2] << 8; + _tile = new byte[tileSize]; + playData->_stream->read(_tile, tileSize); // Copy off the playfield data _matrixSize = header[0] * header[1]; diff --git a/engines/access/room.h b/engines/access/room.h index 44279fa6b1..eec273e3f4 100644 --- a/engines/access/room.h +++ b/engines/access/room.h @@ -124,7 +124,6 @@ public: int _playFieldWidth; int _playFieldHeight; byte *_tile; - int _tileSize; int _selectCommand; bool _conFlag; public: |