Skip to content

Commit f47c46d

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents cb7510b + 93d177e commit f47c46d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/textures/parsers/SpriteSheet.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ var SpriteSheet = function (texture, sourceIndex, x, y, width, height, config)
5858
var column = Math.floor((height - margin + spacing) / (frameHeight + spacing));
5959
var total = row * column;
6060

61+
if (total === 0)
62+
{
63+
console.warn('SpriteSheet frame dimensions will result in zero frames.');
64+
}
65+
6166
if (startFrame > total || startFrame < -total)
6267
{
6368
startFrame = 0;

0 commit comments

Comments
 (0)