Correct bug I introduced in XML reading, sorry
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7436 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c6739a33bb
commit
7e9f6b5b20
@ -229,8 +229,8 @@ int XMLNode::get(const std::string &attribute, Vec3 *value) const
|
||||
float x, y, z;
|
||||
|
||||
if (StringUtils::parseString<float>(v[0], &x) &&
|
||||
StringUtils::parseString<float>(v[0], &x) &&
|
||||
StringUtils::parseString<float>(v[0], &x) )
|
||||
StringUtils::parseString<float>(v[1], &y) &&
|
||||
StringUtils::parseString<float>(v[2], &z) )
|
||||
{
|
||||
value->setX(x);
|
||||
value->setY(y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user