diff options
author | Paul Gilbert | 2012-05-04 00:11:38 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-04 00:11:38 +1000 |
commit | 5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6 (patch) | |
tree | 034a0b5e8b604056b767bfc283e5c3583cfe0c31 /engines/tony/mpal | |
parent | 6d0f1fca46c8bd9b5b4e7ccaf6631850c29d1447 (diff) | |
download | scummvm-rg350-5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6.tar.gz scummvm-rg350-5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6.tar.bz2 scummvm-rg350-5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6.zip |
TONY: Implemented some missing and incorrect init code
Diffstat (limited to 'engines/tony/mpal')
-rw-r--r-- | engines/tony/mpal/mpal.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp index 74dbedd90f..610dd59984 100644 --- a/engines/tony/mpal/mpal.cpp +++ b/engines/tony/mpal/mpal.cpp @@ -626,13 +626,13 @@ HGLOBAL resLoad(uint32 dwId) { uint32 nSizeComp, nSizeDecomp; byte *temp, *buf; - for (i=0;i<nResources;i++) - if (lpResources[i*2]==dwId) { + for (i = 0; i < nResources; i++) + if (lpResources[i * 2] == dwId) { hMpr.seek(lpResources[i * 2 + 1]); nBytesRead = hMpr.read(head, 4); - if (nBytesRead!=4) + if (nBytesRead != 4) return NULL; - if (head[0]!='R' || head[1]!='E' || head[2]!='S' || head[3]!='D') + if (head[0] != 'R' || head[1] != 'E' || head[2] != 'S' || head[3] != 'D') return NULL; nSizeDecomp = hMpr.readUint32LE(); |