* Fix compiling with MSVC (variable declarations at the start of the function)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1774 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-05-30 07:17:43 +00:00
parent 1ba7327b0c
commit 1faab1bc89
1 changed files with 3 additions and 1 deletions

View File

@ -387,7 +387,6 @@ char *strresGetString(STR_RES *psRes, UDWORD id)
/* Load a string resource file */
BOOL strresLoad(STR_RES* psRes, const char* fileName)
{
psCurrRes = psRes;
PHYSFS_file* fileHandle = PHYSFS_openRead(fileName);
if (!fileHandle)
{
@ -395,6 +394,9 @@ BOOL strresLoad(STR_RES* psRes, const char* fileName)
return FALSE;
}
// Set string resource to operate on
psCurrRes = psRes;
strresSetInputFile(fileHandle);
if (strres_parse() != 0)
{