fix NAT flixel cpp bug

This commit is contained in:
2022-09-08 20:46:45 +00:00
parent 74a7a41cae
commit 9ab8bdb96d

View File

@@ -19,7 +19,7 @@
// Also, remove text image files -- now that text sprites
// are generated on the fly.
(function :Bool upgradeToVersion2 [:nat.Archive archive :nat.Entry e]
(when (hasComponent e Images)
(if (hasComponent e Images)
(let [images1 (readComponent e Images)
scale (readComponentOr e Scale 1.0)
pIdx images1.pinnedImageIndex
@@ -39,4 +39,5 @@
(for _ (range (- images1.imageFiles.length 1 pIdx)) 1.0)))
pinnedImageIndex pIdx))
(removeComponent archive e Scale)
true)))
true)
false))