We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c50c09 commit 58751d5Copy full SHA for 58751d5
1 file changed
v3/src/gameobjects/mesh/Mesh.js
@@ -40,12 +40,12 @@ var Mesh = new Class({
40
throw new Error('Phaser: Vertex count must match UV count');
41
}
42
43
- if (colors.length > 0 && colors.length < (vertices.length / 2)|0)
+ if (colors.length > 0 && colors.length < ((vertices.length / 2)|0))
44
{
45
throw new Error('Phaser: Color count must match Vertex count');
46
47
48
- if (alphas.length > 0 && alphas.length < (vertices.length / 2)|0)
+ if (alphas.length > 0 && alphas.length < ((vertices.length / 2)|0))
49
50
throw new Error('Phaser: Alpha count must match Vertex count');
51
0 commit comments