Mercurial > games > semicongine
changeset 906:273f64d80f1f
fix: wrong comparison
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 24 Feb 2024 17:08:58 +0700 |
parents | a9d71d2c2461 |
children | d9b250767942 |
files | semicongine/resources/mesh.nim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/resources/mesh.nim Sat Feb 24 15:35:52 2024 +0700 +++ b/semicongine/resources/mesh.nim Sat Feb 24 17:08:58 2024 +0700 @@ -360,7 +360,7 @@ assert data.structuredContent["buffers"].len == 1 assert not data.structuredContent["buffers"][0].hasKey("uri") let bufferLenDiff = int(chunkLength) - data.structuredContent["buffers"][0]["byteLength"].getInt() - assert 0 <= bufferLenDiff <= 3 # binary buffer may be aligned to 4 bytes + assert 0 <= bufferLenDiff and bufferLenDiff <= 3 # binary buffer may be aligned to 4 bytes debug "Loading mesh: ", data.structuredContent.pretty