Explorar o código

Update babylon.spriteManager.ts

Fix check for undefined
Pavel %!s(int64=8) %!d(string=hai) anos
pai
achega
9468f09f0e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {