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

summaryrefslogtreecommitdiff
path: root/source/game/StarHumanoid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarHumanoid.cpp')
-rw-r--r--source/game/StarHumanoid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/game/StarHumanoid.cpp b/source/game/StarHumanoid.cpp
index 418e88d..a18dd3f 100644
--- a/source/game/StarHumanoid.cpp
+++ b/source/game/StarHumanoid.cpp
@@ -1382,11 +1382,11 @@ pair<Vec2F, Directives> Humanoid::extractScaleFromDirectives(Directives const& d
size_t totalLength = 0;
Maybe<Vec2F> scale;
- for (auto& entry : directives.shared->entries) {
- auto string = entry.string(*directives.shared);
+ for (auto& entry : directives->entries) {
+ auto string = entry.string(*directives);
const ScaleImageOperation* op = nullptr;
if (string.beginsWith("scalenearest") && string.utf8().find("skip") == NPos)
- op = entry.loadOperation(*directives.shared).ptr<ScaleImageOperation>();
+ op = entry.loadOperation(*directives).ptr<ScaleImageOperation>();
if (op)
scale = scale.value(Vec2F::filled(1.f)).piecewiseMultiply(op->scale);