From 2e6cb4e1357f623729a437be5022a8adf014d1f3 Mon Sep 17 00:00:00 2001 From: Buginator Date: Sat, 10 Oct 2009 01:26:36 +0000 Subject: [PATCH] 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-861f7616d084 --- src/data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data.c b/src/data.c index 06fd4c404..fd77d51f3 100644 --- a/src/data.c +++ b/src/data.c @@ -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)