Hold internal reference to Sprite in SpriteAtlas
This commit is contained in:
@@ -646,7 +646,7 @@ void Map::prepare() {
|
||||
|
||||
// Allow the sprite atlas to potentially pull new sprite images if needed.
|
||||
spriteAtlas->resize(state.getPixelRatio());
|
||||
spriteAtlas->update(*getSprite());
|
||||
spriteAtlas->setSprite(getSprite());
|
||||
|
||||
updateTiles();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user