diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-23 11:48:51 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-23 11:48:51 +1000 |
commit | 7136c929cea0ddf955ab69a8ff5a4394bedacea8 (patch) | |
tree | d17322f98b5614eadeb086dae70d6fbd81d84934 /source/game/items/StarActiveItem.cpp | |
parent | ed3793ab004e1c6d21225f34c8369d12f6525334 (diff) |
micro-opt NetworkedAnimator drawables
sort before creating drawables
Diffstat (limited to 'source/game/items/StarActiveItem.cpp')
-rw-r--r-- | source/game/items/StarActiveItem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/items/StarActiveItem.cpp b/source/game/items/StarActiveItem.cpp index 102ad16..725ea27 100644 --- a/source/game/items/StarActiveItem.cpp +++ b/source/game/items/StarActiveItem.cpp @@ -251,7 +251,7 @@ Maybe<Direction> ActiveItem::facingDirection() const { } List<Drawable> ActiveItem::handDrawables() const { - if (m_itemAnimator.parts().empty()) { + if (m_itemAnimator.constParts().empty()) { auto drawables = Item::iconDrawables(); Drawable::scaleAll(drawables, 1.0f / TilePixels); return drawables; |