forked from github/server
move declaration to top of block
This commit is contained in:
parent
5e356bc5fe
commit
e39336e87a
|
@ -1437,12 +1437,12 @@ static int parse_spellbooks(xmlDocPtr doc)
|
||||||
|
|
||||||
static int parse_spells(xmlDocPtr doc)
|
static int parse_spells(xmlDocPtr doc)
|
||||||
{
|
{
|
||||||
|
pf_generic cast = 0;
|
||||||
|
pf_generic fumble = 0;
|
||||||
xmlXPathContextPtr xpath = xmlXPathNewContext(doc);
|
xmlXPathContextPtr xpath = xmlXPathNewContext(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);
|
||||||
|
|
Loading…
Reference in New Issue