diff options
author | Filippos Karapetis | 2015-12-27 01:14:55 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-12-27 01:14:55 +0200 |
commit | 56c5919c3d9933e0fc369b294acad7089f48ac1e (patch) | |
tree | 53624a0e5176e29199963776b99453bb290c5949 /engines/lab/tilepuzzle.cpp | |
parent | 1d3a3a24fac86e184da2ef44deb1491d347f5f8d (diff) | |
download | scummvm-rg350-56c5919c3d9933e0fc369b294acad7089f48ac1e.tar.gz scummvm-rg350-56c5919c3d9933e0fc369b294acad7089f48ac1e.tar.bz2 scummvm-rg350-56c5919c3d9933e0fc369b294acad7089f48ac1e.zip |
LAB: Fix crash in the the door number puzzle
Diffstat (limited to 'engines/lab/tilepuzzle.cpp')
-rw-r--r-- | engines/lab/tilepuzzle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lab/tilepuzzle.cpp b/engines/lab/tilepuzzle.cpp index 792989a07c..fe37ee4d9e 100644 --- a/engines/lab/tilepuzzle.cpp +++ b/engines/lab/tilepuzzle.cpp @@ -312,7 +312,7 @@ void TilePuzzle::changeCombination(uint16 number) { display._width = _vm->_graphics->_screenWidth; display._height = _vm->_graphics->_screenHeight; - byte *buffer = new byte[_tiles[1]->_width * _tiles[1]->_height * 2]; + byte *buffer = new byte[_numberImages[1]->_width * _numberImages[1]->_height * 2]; for (int i = 1; i <= (_numberImages[combnum]->_height / 2); i++) { if (_vm->_isHiRes) { |