fixed prefetching bug

svn-id: r7751
This commit is contained in:
Robert Göffringmann 2003-05-20 19:37:17 +00:00
parent ffadd452a9
commit b4fd14f2d0

View File

@ -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;