ACCESS: Move variable from Room manager to local function

This commit is contained in:
Strangerke 2014-12-22 19:41:40 +01:00
parent fc9595efdc
commit d1bc69426e
2 changed files with 3 additions and 4 deletions

View File

@ -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];

View File

@ -124,7 +124,6 @@ public:
int _playFieldWidth;
int _playFieldHeight;
byte *_tile;
int _tileSize;
int _selectCommand;
bool _conFlag;
public: