One of these days I will remember to save files *before* the commit. :S
Fixes ticket:989 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8247 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
1899dff4b7
commit
2e6cb4e135
|
@ -1111,7 +1111,7 @@ static BOOL dataScriptLoad(const char* fileName, void **ppData)
|
|||
}
|
||||
|
||||
// due to the changes in r2531 we must do this routine a bit different.
|
||||
fileSize = PHYSFS_fileLength(fileName);
|
||||
fileSize = PHYSFS_fileLength(fileHandle);
|
||||
|
||||
pBuffer = malloc(fileSize * sizeof(char));
|
||||
if (pBuffer == NULL)
|
||||
|
@ -1180,7 +1180,7 @@ static BOOL dataScriptLoadVals(const char* fileName, void **ppData)
|
|||
return false;
|
||||
}
|
||||
// due to the changes in r2532 we must do this routine a bit different.
|
||||
fileSize = PHYSFS_fileLength(fileName);
|
||||
fileSize = PHYSFS_fileLength(fileHandle);
|
||||
|
||||
pBuffer = malloc(fileSize * sizeof(char));
|
||||
if (pBuffer == NULL)
|
||||
|
|
Loading…
Reference in New Issue