Remove root slash from the asset path

This commit is contained in:
Riccardo Balbo 2015-06-18 16:26:36 +02:00
parent fb3a1902a8
commit 7fa735fdb1

@ -82,6 +82,7 @@ public class ZipLocator implements AssetLocator {
public AssetInfo locate(AssetManager manager, AssetKey key) {
String name = key.getName();
if(name.startsWith("/"))name=name.substring(1);
ZipEntry entry = zipfile.getEntry(name);
if (entry == null)
return null;