SimpleTextDrawer: Assert after update

This commit is contained in:
Lynix 2017-08-06 23:37:14 +02:00
parent 74af157113
commit 506a963539
1 changed files with 1 additions and 2 deletions

View File

@ -105,11 +105,10 @@ namespace Nz
const AbstractTextDrawer::Line& SimpleTextDrawer::GetLine(std::size_t index) const
{
NazaraAssert(index < m_lines.size(), "Line index out of range");
if (!m_glyphUpdated)
UpdateGlyphs();
NazaraAssert(index < m_lines.size(), "Line index out of range");
return m_lines[index];
}