mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
fix initial array index value
This commit is contained in:
parent
c52a9a3f78
commit
38b2ac4f04
2 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ void History::add(
|
|||
|
||||
if (FOLLOW)
|
||||
{
|
||||
index = memory.size(); // @TODO not last index, use iterator
|
||||
index = memory.size() - 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace app::browser::main::tab::page::navbar
|
|||
history::Back * historyBack;
|
||||
history::Forward * historyForward;
|
||||
|
||||
int index = 0;
|
||||
int index = -1;
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue