Skip to content

Commit

Permalink
bugfix #22 & #41: Do not increment index if variable
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Dec 16, 2023
1 parent feb0bb1 commit 9fa86bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions actions_std.go
Original file line number Diff line number Diff line change
Expand Up @@ -3897,6 +3897,9 @@ func scriptingActions() {
},
},
check: func(args []actionArgument) {
if args[1].valueType == Variable {
return
}
args[1] = actionArgument{
valueType: Integer,
value: incrementValue(args[1].value),
Expand Down Expand Up @@ -3932,6 +3935,9 @@ func scriptingActions() {
},
},
check: func(args []actionArgument) {
if args[1].valueType == Variable || args[2].valueType == Variable {
return
}
args[1] = actionArgument{
valueType: Integer,
value: incrementValue(args[1].value),
Expand Down

0 comments on commit 9fa86bc

Please # to comment.