summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/ui_shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c
index 7c9e4452..5daf33b7 100644
--- a/src/ui/ui_shared.c
+++ b/src/ui/ui_shared.c
@@ -2017,9 +2017,9 @@ float UI_Char_Width( const char **text, float scale )
}
}
+ glyph = &font->glyphs[ (int)**text ];
(*text)++;
- glyph = &font->glyphs[ (int)**text ];
return glyph->xSkip * DC->aspectScale * scale * font->glyphScale;
}