Skip to content

Commit

Permalink
fix type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KilledByAPixel committed Feb 3, 2025
1 parent c128666 commit 531a9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engineDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function tile(pos=vec2(), size=tileSizeDefault, textureIndex=0, padding=0)

// use pos as a tile index
const textureInfo = textureInfos[textureIndex];
ASSERT(textureInfo, 'Texture not loaded');
ASSERT(!!textureInfo, 'Texture not loaded');
const sizePadded = size.add(vec2(padding*2));
const cols = textureInfo.size.x / sizePadded.x |0;
if (typeof pos === 'number')
Expand Down

0 comments on commit 531a9f8

Please sign in to comment.