Fixes ticket #237

Using C99 declaration instead of C98.
 

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6573 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-01-31 19:44:15 +00:00
parent ed2a2011f6
commit ae27065c85
1 changed files with 1 additions and 1 deletions

View File

@ -140,6 +140,7 @@ BOOL loadFeatureStats(const char *pFeatureData, UDWORD bufferSize)
for (i = 0; i < numFeatureStats; i++)
{
UDWORD Width, Breadth;
int damageable = 0, tileDraw = 0, allowLOS = 0, visibleAtStart = 0;
memset(psFeature, 0, sizeof(FEATURE_STATS));
@ -147,7 +148,6 @@ BOOL loadFeatureStats(const char *pFeatureData, UDWORD bufferSize)
GfxFile[0] = '\0';
type[0] = '\0';
int damageable = 0, tileDraw = 0, allowLOS = 0, visibleAtStart = 0;
//read the data into the storage - the data is delimeted using comma's
sscanf(pFeatureData, "%[^','],%d,%d,%d,%d,%d,%[^','],%[^','],%d,%d,%d",