LAB: Add _vm to Image class

This commit is contained in:
Strangerke 2015-12-13 22:51:23 +01:00 committed by Willem Jan Palenstijn
parent 2b91bf2f34
commit ad54a75b85
9 changed files with 83 additions and 79 deletions

View file

@ -88,6 +88,8 @@ LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc)
_rooms = nullptr;
_tilePuzzle = nullptr;
_utils = nullptr;
journalBackImage = nullptr;
ScreenImage = nullptr;
_lastTooLong = false;
_interfaceOff = false;
@ -96,9 +98,8 @@ LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc)
for (int i = 0; i < 20; i++)
_moveImages[i] = nullptr;
for (int i = 0; i < 10; i++) {
for (int i = 0; i < 10; i++)
_invImages[i] = nullptr;
}
_curFileName = nullptr;
_nextFileName = nullptr;
@ -155,6 +156,8 @@ LabEngine::~LabEngine() {
delete[] _rooms;
delete _tilePuzzle;
delete _utils;
delete journalBackImage;
delete ScreenImage;
}
Common::Error LabEngine::run() {
@ -170,6 +173,8 @@ Common::Error LabEngine::run() {
_anim = new Anim(this);
_tilePuzzle = new TilePuzzle(this);
_utils = new Utils(this);
journalBackImage = new Image(this);
ScreenImage = new Image(this);
if (getPlatform() == Common::kPlatformWindows) {
// Check if this is the Wyrmkeep trial