Sdk/Console: Fix crash
This commit is contained in:
parent
5b36ac1953
commit
679f599c79
|
|
@ -192,9 +192,12 @@ namespace Ndk
|
||||||
m_historyPosition = 1;
|
m_historyPosition = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_commandHistory.empty())
|
||||||
|
{
|
||||||
Nz::String text = m_commandHistory[m_commandHistory.size() - m_historyPosition];
|
Nz::String text = m_commandHistory[m_commandHistory.size() - m_historyPosition];
|
||||||
m_inputDrawer.SetText(s_inputPrefix + text);
|
m_inputDrawer.SetText(s_inputPrefix + text);
|
||||||
m_inputTextSprite->Update(m_inputDrawer);
|
m_inputTextSprite->Update(m_inputDrawer);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue