changeset 1344:18eff4d97ab0

fix: stupidity
author sam <sam@basx.dev>
date Mon, 26 Aug 2024 20:24:29 +0700
parents edb0b650fc5f
children 34832174824b
files semicongine/image.nim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/image.nim	Mon Aug 26 19:39:12 2024 +0700
+++ b/semicongine/image.nim	Mon Aug 26 20:24:29 2024 +0700
@@ -111,7 +111,7 @@
   assert image.height == imageArray.height,
     "Image needs to have same dimension as ImageArray to be added"
 
-  inc image.nLayers
+  inc imageArray.nLayers
   imageArray.data.add image.data
 
 proc loadImageArray*[T: PixelType](