Skip to content

Commit

Permalink
Fixed a bug in script compiler that assigned wrong id to TriggerOverride
Browse files Browse the repository at this point in the history
function definition for BG2+TobEx
  • Loading branch information
Argent77 committed Apr 16, 2017
1 parent 8dff916 commit ba11df7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/org/infinity/resource/bcs/ScriptInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,12 @@ protected ScriptInfo(ScriptInfo obj, String[] objectSpecifierIds)
this((objectSpecifierIds != null) ? objectSpecifierIds : obj.OBJECT_SPECIFIER_IDS, obj.SCOPES);
this.FUNCTION_RESTYPE.putAll(obj.FUNCTION_RESTYPE);
this.FUNCTION_CONCAT.putAll(obj.FUNCTION_CONCAT);
this.FUNCTION_SIGNATURES.putAll(obj.FUNCTION_SIGNATURES);
for (final Function.FunctionType ft: obj.FUNCTION_SIGNATURES.keySet()) {
List<String> oldList = obj.FUNCTION_SIGNATURES.get(ft);
if (oldList != null) {
this.FUNCTION_SIGNATURES.put(ft, new ArrayList<String>(oldList));
}
}
}

/** Returns object specifier IDS resource names. */
Expand Down

0 comments on commit ba11df7

Please sign in to comment.