PEGASUS: Fix ghosted biochips when loading saved games

Could happen when loading saved games that have fewer biochips than you previously had.
This commit is contained in:
Matthew Hoops 2012-04-11 11:39:56 -04:00
parent f087f20fa2
commit 5ee569bce6

View File

@ -197,12 +197,12 @@ void InventoryPicture::activateInventoryPicture() {
_panelMovie.redrawMovieWorld();
}
_panelMovie.setTime(0);
uint32 numSlots = _itemsPerRow * _numberOfRows;
for (uint32 i = numItems; i < numSlots; i++) {
getItemXY(i, x, y);
_panelMovie.moveMovieBoxTo(x, y);
_panelMovie.setTime(0);
_panelMovie.redrawMovieWorld();
}