* 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-861f7616d084master
parent
1ba7327b0c
commit
1faab1bc89
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue