Fix wrong calculation of requried bytes

This commit is contained in:
Dávid Szabó 2016-09-23 14:33:56 +02:00 committed by Julian Descottes
parent 4cc434edd6
commit 23a0768f8d

View File

@ -66,7 +66,7 @@
// Layers
for (var i = 0, layers = piskel.getLayers(); i < layers.length; i++) {
bytes += 3 * 2;
bytes += 5 * 2;
bytes += layers[i].name.length * 2;
bytes += framesData[i].length;
if (bytes % 2 == 1) {