Add missing safety check to prevent error when clicking DUPLICATE item that doesn't exist
This commit is contained in:
parent
930b0cda7e
commit
b63c443d3d
1 changed files with 5 additions and 0 deletions
|
@ -134,6 +134,11 @@ var duplicateNamesPage = {
|
|||
}
|
||||
},
|
||||
pushButtonLeft: func(indexSelect) {
|
||||
if (indexSelect > size(me.vector)) {
|
||||
mcdu_message(me.computer, "NOT ALLOWED");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!dirToFlag) {
|
||||
if (!me.flagPBD and !me.flagPROG) {
|
||||
if (size(me.vector[0].id) == 5) {
|
||||
|
|
Loading…
Reference in a new issue