Mercurial > games > semicongine
changeset 445:58478c5873f1
fix: wrong comparison
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 24 Feb 2024 17:08:58 +0700 |
parents | f9d25bc331b3 |
children | 139b929f5866 |
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