Skip to content

Commit

Permalink
Fixed ambiguous script decompiler error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Argent77 committed Apr 16, 2017
1 parent 27d03ad commit 8dff916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/infinity/resource/bcs/Decompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ private String decompileTrigger(BcsTrigger trigger) throws Exception
if (isGenerateErrors()) {
idsErrors.put(Integer.valueOf(lineNr), "Unknown type for parameter " + i + ".");
}
return String.format("// Error - %s: Unknown type for parameter %d", function.getName(), trigger.id);
return String.format("// Error - %s: Unknown type for parameter %d", function.getName(), i);
}
}

Expand Down

0 comments on commit 8dff916

Please sign in to comment.