LAB: Rename _music, delete it in engine destructor

This commit is contained in:
Strangerke 2015-11-30 01:17:05 +01:00 committed by Willem Jan Palenstijn
parent 05f54b7fe0
commit d0c6c73036
10 changed files with 127 additions and 126 deletions

View file

@ -65,7 +65,7 @@ TextFont *Resource::getFont(const char *fileName) {
if (fileSize <= headerSize)
return NULL;
_vm->g_music->updateMusic();
_vm->_music->updateMusic();
TextFont *textfont = (TextFont *)malloc(sizeof(TextFont));
textfont->DataLength = fileSize - headerSize;
@ -142,7 +142,7 @@ bool Resource::readViews(uint16 roomNum) {
_rooms[roomNum]._westView = readView(dataFile);
_rooms[roomNum]._rules = readRule(dataFile);
_vm->g_music->updateMusic();
_vm->_music->updateMusic();
delete dataFile;
return true;