LAB: Rename _music, delete it in engine destructor
This commit is contained in:
parent
05f54b7fe0
commit
d0c6c73036
10 changed files with 127 additions and 126 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue