Fix Assets.getBytes for a cached text asset

This commit is contained in:
Joshua Granick
2017-01-27 16:21:56 -08:00
parent 29184354b5
commit 138043bf94

View File

@@ -178,6 +178,12 @@ class AssetLibrary {
return cachedBytes.get (id);
} else if (cachedText.exists (id)) {
var bytes = Bytes.ofString (cachedText.get (id));
cachedBytes.set (id, bytes);
return bytes;
} else if (classTypes.exists (id)) {
#if flash