Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/items/StarActiveItem.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-23 11:48:51 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-23 11:48:51 +1000
commit7136c929cea0ddf955ab69a8ff5a4394bedacea8 (patch)
treed17322f98b5614eadeb086dae70d6fbd81d84934 /source/game/items/StarActiveItem.cpp
parented3793ab004e1c6d21225f34c8369d12f6525334 (diff)
micro-opt NetworkedAnimator drawables
sort before creating drawables
Diffstat (limited to 'source/game/items/StarActiveItem.cpp')
-rw-r--r--source/game/items/StarActiveItem.cpp2
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;