Merge pull request #1322 from NatWeiss/fixtmxparser2

Fixes a bug in the TMX parser which caused tileset images not to load.
This commit is contained in:
minggo 2012-09-15 18:50:44 -07:00
commit 7e123f3aec
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ void CCTMXMapInfo::startElement(void *ctx, const char *name, const char **atts)
}
else
{
tileset->m_sSourceImage = m_sResources + "/" + imagename;
tileset->m_sSourceImage = m_sResources + (m_sResources.size() ? "/" : "") + imagename;
}
}
else if(elementName == "data")