diff options
Diffstat (limited to 'src/components.cpp')
-rw-r--r-- | src/components.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components.cpp b/src/components.cpp index 28a81fe..b758cb6 100644 --- a/src/components.cpp +++ b/src/components.cpp @@ -306,12 +306,12 @@ std::vector<Frame> developFrame(XMLElement* xml) std::string sname = sxml->Name(); if (sname == "src") { foffset = (sxml->Attribute("offset") != nullptr) ? - str2coord(sxml->Attribute("offset")) : vec2(0,0); + sxml->StrAttribute("offset") : vec2(0,0); fdraw = (sxml->Attribute("drawOffset") != nullptr) ? - str2coord(sxml->Attribute("drawOffset")) : vec2(0,0); + sxml->StrAttribute("drawOffset") : vec2(0,0); if (sxml->Attribute("size") != nullptr) { - fsize = str2coord(sxml->Attribute("size")); + fsize = sxml->Attribute("size"); tmpf.push_back(std::make_pair(SpriteData(sxml->GetText(), foffset, fsize), fdraw)); } else { tmpf.push_back(std::make_pair(SpriteData(sxml->GetText(), foffset), fdraw)); |