Fixes a bug in the TMX parser which caused tileset images not to load on Android.

This commit is contained in:
Nat Weiss 2012-09-15 15:59:15 -07:00
parent 64d6d6ed81
commit 53e4da5d5c
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")