diff options
Diffstat (limited to 'engines/lab/special.cpp')
| -rw-r--r-- | engines/lab/special.cpp | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/engines/lab/special.cpp b/engines/lab/special.cpp index f8b0c2091e..9f36303a1d 100644 --- a/engines/lab/special.cpp +++ b/engines/lab/special.cpp @@ -83,7 +83,6 @@ uint16 CurTile[4][4] = {  extern uint16 *FadePalette;  extern BitMap *DispBitMap, *DrawBitMap; -extern InventoryData *Inventory;  extern uint16 Direction;  #define COMBINATIONUNLOCKED  130 @@ -753,7 +752,7 @@ void LabEngine::doJournal() {  	freeAllStolenMem();  } -bool saveRestoreGame() { +bool LabEngine::saveRestoreGame() {  	bool isOK = false;  	//g_lab->showMainMenu(); @@ -775,14 +774,14 @@ bool saveRestoreGame() {  				desc = dialog->createDefaultSaveDescription(slot);  			} -			isOK = saveGame(Direction, Inventory[QUARTERNUM].Many, slot, desc); +			isOK = saveGame(Direction, _inventory[QUARTERNUM].Many, slot, desc);  		}  	} else {  		// Restore  		GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Restore game:"), _("Restore"), false);  		int slot = dialog->runModalWithCurrentTarget();  		if (slot >= 0) { -			isOK = loadGame(&Direction, &(Inventory[QUARTERNUM].Many), slot); +			isOK = loadGame(&Direction, &(_inventory[QUARTERNUM].Many), slot);  			if (isOK)  				g_lab->_music->resetMusic();  		} | 
