mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
fix initial array index value
This commit is contained in:
parent
c52a9a3f78
commit
38b2ac4f04
@ -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…
x
Reference in New Issue
Block a user