fix initial array index value

This commit is contained in:
yggverse 2024-09-04 23:08:44 +03:00
parent c52a9a3f78
commit 38b2ac4f04
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ void History::add(
if (FOLLOW)
{
index = memory.size(); // @TODO not last index, use iterator
index = memory.size() - 1;
}
}

View File

@ -22,7 +22,7 @@ namespace app::browser::main::tab::page::navbar
history::Back * historyBack;
history::Forward * historyForward;
int index = 0;
int index = -1;
public: