Hold internal reference to Sprite in SpriteAtlas

This commit is contained in:
John Firebaugh
2014-10-22 14:25:10 -07:00
parent 14829db508
commit 4f7bc80664
6 changed files with 40 additions and 51 deletions

View File

@@ -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();
}