From e4029f6f0e5aa9dc679ce875fb7625c564c69144 Mon Sep 17 00:00:00 2001 From: Andrew Kurushin Date: Tue, 19 Oct 2010 22:29:53 +0000 Subject: SAGA: SAGA: replace SpriteList "::realloc" with Common::Array svn-id: r53628 --- engines/saga/puzzle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/saga/puzzle.cpp') 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 ; -- cgit v1.2.3