mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
[code] Fixed loop condition bug in ConsoleStore.
Change-Id: Ia6a46fe04614afcdace4ab3396282b3c5a6c308c
This commit is contained in:
@@ -35,7 +35,7 @@ int ConsoleStore::numberOfLines() const {
|
||||
return 0;
|
||||
}
|
||||
int result = 0;
|
||||
for (int i=0; i<k_historySize; i++) {
|
||||
for (int i = 0; i < k_historySize - 1; i++) {
|
||||
if (m_history[i] == 0) {
|
||||
result++;
|
||||
if (m_history[i+1] == 0) {
|
||||
|
||||
Reference in New Issue
Block a user