forked from github/server
Define "pf_generic cast = 0" and "pf_generic fumble = 0" early
Visual Studio 2013 express don't compile without errors if this definition comes to late.
This commit is contained in:
parent
be4e02cc16
commit
99da4de9ad
|
@ -1487,6 +1487,8 @@ static int parse_spells(xmlDocPtr doc)
|
||||||
xmlXPathObjectPtr spells;
|
xmlXPathObjectPtr spells;
|
||||||
char zText[32];
|
char zText[32];
|
||||||
strcpy(zText, "fumble_");
|
strcpy(zText, "fumble_");
|
||||||
|
pf_generic cast = 0;
|
||||||
|
pf_generic fumble = 0;
|
||||||
|
|
||||||
/* reading eressea/spells/spell */
|
/* reading eressea/spells/spell */
|
||||||
spells = xmlXPathEvalExpression(BAD_CAST "/eressea/spells/spell", xpath);
|
spells = xmlXPathEvalExpression(BAD_CAST "/eressea/spells/spell", xpath);
|
||||||
|
@ -1555,8 +1557,6 @@ static int parse_spells(xmlDocPtr doc)
|
||||||
sp->sptyp |= modes[k];
|
sp->sptyp |= modes[k];
|
||||||
|
|
||||||
/* reading eressea/spells/spell/function */
|
/* reading eressea/spells/spell/function */
|
||||||
pf_generic cast = 0;
|
|
||||||
pf_generic fumble = 0;
|
|
||||||
|
|
||||||
xpath->node = node;
|
xpath->node = node;
|
||||||
result = xmlXPathEvalExpression(BAD_CAST "function", xpath);
|
result = xmlXPathEvalExpression(BAD_CAST "function", xpath);
|
||||||
|
|
Loading…
Reference in New Issue