Utility/SimpleTextDrawer: Fix reserve

This commit is contained in:
Lynix 2019-07-09 22:50:22 +02:00 committed by Jérôme Leclercq
parent 5504dd59fb
commit 6bc99a6d5e
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ namespace Nz
const Font::SizeInfo& sizeInfo = m_font->GetSizeInfo(m_characterSize); const Font::SizeInfo& sizeInfo = m_font->GetSizeInfo(m_characterSize);
m_glyphs.reserve(m_glyphs.size() + characters.size() * (m_outlineThickness > 0.f) ? 2 : 1); m_glyphs.reserve(m_glyphs.size() + characters.size() * ((m_outlineThickness > 0.f) ? 2 : 1));
for (char32_t character : characters) for (char32_t character : characters)
{ {
if (m_previousCharacter != 0) if (m_previousCharacter != 0)