mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
fixed prefetching bug
svn-id: r7751
This commit is contained in:
parent
ffadd452a9
commit
b4fd14f2d0
@ -210,8 +210,9 @@ void SkyDisk::prefetchFile(uint16 fileNr) {
|
||||
debug(1,"SkyDisk::prefetchFile: File %d was already prefetched.\n",fileNr);
|
||||
return ;
|
||||
}
|
||||
uint8 *temp = loadFile(fileNr, NULL);
|
||||
*fEntry = new prefFile;
|
||||
(*fEntry)->data = loadFile(fileNr, NULL);
|
||||
(*fEntry)->data = temp;
|
||||
(*fEntry)->fileSize = _lastLoadedFileSize;
|
||||
(*fEntry)->fileNr = fileNr;
|
||||
(*fEntry)->next = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user