forked from len0rd/rockbox
qeditor: fix horrible out of bound bug
Change-Id: I1b34b1cd7be83d90e38559e386d0c6c64797b707 Reviewed-on: http://gerrit.rockbox.org/977 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
This commit is contained in:
parent
0c633db980
commit
79c5a07b4d
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ void EmiAnalyser::FillTable()
|
|||
ports.erase(ports.begin() + value / 6);
|
||||
int ord[6][3] = { {0, 1, 2}, {2, 0, 1}, {1, 2, 0}, {2, 1, 0}, {1, 0, 2}, {0, 2, 1} };
|
||||
for(int i = 0; i < 3; i++)
|
||||
order += ", " + ports[ord[value][i]];
|
||||
order += ", " + ports[ord[value % 6][i]];
|
||||
AddLine("Port Priority Order", value, "", order);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue