diff options
author | Andrew Kurushin | 2010-10-19 22:29:53 +0000 |
---|---|---|
committer | Andrew Kurushin | 2010-10-19 22:29:53 +0000 |
commit | e4029f6f0e5aa9dc679ce875fb7625c564c69144 (patch) | |
tree | 7a1510db216ad36d78e637cbef959b54614ab90e /engines/saga/puzzle.cpp | |
parent | bfb0986cd4f73e564384f513daeba9e7938dcb4d (diff) | |
download | scummvm-rg350-e4029f6f0e5aa9dc679ce875fb7625c564c69144.tar.gz scummvm-rg350-e4029f6f0e5aa9dc679ce875fb7625c564c69144.tar.bz2 scummvm-rg350-e4029f6f0e5aa9dc679ce875fb7625c564c69144.zip |
SAGA: SAGA: replace SpriteList "::realloc" with Common::Array
svn-id: r53628
Diffstat (limited to 'engines/saga/puzzle.cpp')
-rw-r--r-- | engines/saga/puzzle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/saga/puzzle.cpp b/engines/saga/puzzle.cpp index 73839eb6ea..af81c3c670 100644 --- a/engines/saga/puzzle.cpp +++ b/engines/saga/puzzle.cpp @@ -172,7 +172,7 @@ void Puzzle::initPieces() { _vm->_actor->getSpriteParams(puzzle, frameNumber, spriteList); for (int i = 0; i < PUZZLE_PIECES; i++) { - spI = &(spriteList->infoList[i]); + spI = &((*spriteList)[i]); _pieceInfo[i].offX = (byte)(spI->width >> 1); _pieceInfo[i].offY = (byte)(spI->height >> 1); @@ -347,7 +347,7 @@ void Puzzle::dropPiece(Point mousePt) { if (newy < boxy) newy = PUZZLE_Y_OFFSET; - spI = &(spriteList->infoList[_puzzlePiece]); + spI = &((*spriteList)[_puzzlePiece]); if (newx + spI->width > boxw) newx = boxw - spI->width ; |