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

summaryrefslogtreecommitdiff
path: root/source/game
diff options
context:
space:
mode:
Diffstat (limited to 'source/game')
-rw-r--r--source/game/StarHumanoid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarHumanoid.cpp b/source/game/StarHumanoid.cpp
index 1367a30..66a2a95 100644
--- a/source/game/StarHumanoid.cpp
+++ b/source/game/StarHumanoid.cpp
@@ -1387,7 +1387,7 @@ pair<Vec2F, Directives> Humanoid::extractScaleFromDirectives(Directives const& d
if (!directives)
return make_pair(Vec2F::filled(1.f), Directives());
- List<Directives::Entry*> entries;
+ List<Directives::Entry const*> entries;
size_t toReserve = 0;
Maybe<Vec2F> scale;
@@ -1400,7 +1400,7 @@ pair<Vec2F, Directives> Humanoid::extractScaleFromDirectives(Directives const& d
if (op)
scale = scale.value(Vec2F::filled(1.f)).piecewiseMultiply(op->scale);
else {
- entries.emplace_back(entry);
+ entries.emplace_back(&entry);
toReserve += string.utf8Size() + 1;
}
}