We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adfe452 commit 2d41b43Copy full SHA for 2d41b43
src/main/java/com/laytonsmith/core/functions/Math.java
@@ -524,7 +524,7 @@ public Set<OptimizationOption> optimizationOptions() {
524
protected static Mixed doIncrementDecrement(ParseTree[] nodes,
525
Script parent, Environment env, Target t,
526
Function func, boolean pre, boolean inc) {
527
- if(nodes[0].getData() instanceof CFunction) {
+ if(nodes[0].getData() instanceof CFunction && ((CFunction) nodes[0].getData()).hasFunction()) {
528
Function f;
529
try {
530
f = ((CFunction) nodes[0].getData()).getFunction();
0 commit comments