Skip to content

Commit 58751d5

Browse files
committed
Fix two cases where numbers seem to be accidentally not truncated
1 parent 8c50c09 commit 58751d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/gameobjects/mesh/Mesh.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ var Mesh = new Class({
4040
throw new Error('Phaser: Vertex count must match UV count');
4141
}
4242

43-
if (colors.length > 0 && colors.length < (vertices.length / 2)|0)
43+
if (colors.length > 0 && colors.length < ((vertices.length / 2)|0))
4444
{
4545
throw new Error('Phaser: Color count must match Vertex count');
4646
}
4747

48-
if (alphas.length > 0 && alphas.length < (vertices.length / 2)|0)
48+
if (alphas.length > 0 && alphas.length < ((vertices.length / 2)|0))
4949
{
5050
throw new Error('Phaser: Alpha count must match Vertex count');
5151
}

0 commit comments

Comments
 (0)