music support,

fixed timing bugs

svn-id: r3491
This commit is contained in:
Ludvig Strigeus 2001-11-14 18:40:39 +00:00
parent 279d5b2fd7
commit b8d259d60e
18 changed files with 3298 additions and 376 deletions

View file

@ -551,12 +551,12 @@ byte *Scumm::getResourceAddress(int type, int index) {
ensureResourceLoaded(type, index);
}
setResourceCounter(type, index, 1);
ptr=(byte*)res.address[type][index];
if (!ptr)
return NULL;
setResourceCounter(type, index, 1);
return ptr + sizeof(ResHeader);
}