Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
7893ab08
Commit
7893ab08
authored
Jan 29, 2015
by
Gavin Bises
Browse files
Fix broken cmc parsing from cards.xml
I don't know why this even compiled
parent
a31c15c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
7893ab08
...
@@ -751,7 +751,7 @@ void CardDatabase::loadCardsFromXml(QXmlStreamReader &xml, bool tokens)
...
@@ -751,7 +751,7 @@ void CardDatabase::loadCardsFromXml(QXmlStreamReader &xml, bool tokens)
else
if
(
xml
.
name
()
==
"manacost"
)
else
if
(
xml
.
name
()
==
"manacost"
)
manacost
=
xml
.
readElementText
();
manacost
=
xml
.
readElementText
();
else
if
(
xml
.
name
()
==
"cmc"
)
else
if
(
xml
.
name
()
==
"cmc"
)
cmc
=
xml
.
readElementText
()
.
toInt
()
;
cmc
=
xml
.
readElementText
();
else
if
(
xml
.
name
()
==
"type"
)
else
if
(
xml
.
name
()
==
"type"
)
type
=
xml
.
readElementText
();
type
=
xml
.
readElementText
();
else
if
(
xml
.
name
()
==
"pt"
)
else
if
(
xml
.
name
()
==
"pt"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment