Browse Source

Update babylon.spriteManager.ts

Fix check for undefined
Pavel 8 years ago
parent
commit
9468f09f0e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Sprites/babylon.spriteManager.ts

+ 1 - 1
src/Sprites/babylon.spriteManager.ts

@@ -52,7 +52,7 @@
             if (cellSize.width && cellSize.height) {
                 this.cellWidth = cellSize.width;
                 this.cellHeight = cellSize.height;
-            } else if(cellSize === undefined) {
+            } else if(cellSize !== undefined) {
                 this.cellWidth = cellSize;
                 this.cellHeight = cellSize;
             } else {