Fixed SpriteSheetFromAtlas out of range sourceIndex

This commit is contained in:
Bambosh 2023-01-26 16:28:15 +11:00
parent de2e7847df
commit 7cbf56c3ae

View file

@ -93,7 +93,7 @@ var SpriteSheetFromAtlas = function (texture, frame, config)
var frameX = margin;
var frameY = margin;
var frameIndex = 0;
var sourceIndex = frame.sourceIndex;
var sourceIndex = 0;
for (var sheetY = 0; sheetY < column; sheetY++)
{