Przeglądaj źródła

Update babylon.spriteManager.ts

Fix check for undefined
Pavel 8 lat temu
rodzic
commit
9468f09f0e
1 zmienionych plików z 1 dodań i 1 usunięć
  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 {