diff --git a/sources/chargen.js b/sources/chargen.js index 720607d20..49178f1b9 100755 --- a/sources/chargen.js +++ b/sources/chargen.js @@ -307,7 +307,8 @@ $(document).ready(function() { let prospectFile = ''; for (let creditEntry of parsedCredits) { var creditPath = creditEntry.substring(0, creditEntry.indexOf(',')); - if (fileName.startsWith(creditPath) && (creditPath.length > prospectPath.length)) { + if (fileName.startsWith(creditPath) && (creditPath.length > prospectPath.length) + && !creditEntry.startsWith(creditPath + ',,,,')) { prospect = creditEntry; prospectPath = creditPath; prospectFile = fileName;