1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Type deletion protection in mPopulateTypeWorkList

This commit is contained in:
Brian Fiete 2022-05-16 10:56:20 -07:00
parent 667642ca52
commit c73cf12f5e
2 changed files with 4 additions and 4 deletions

View file

@ -9927,9 +9927,8 @@ BF_EXPORT const char* BF_CALLTYPE BfCompiler_GetCollapseRegions(BfCompiler* bfCo
else
{
int dollarPos = (int)emitParser->mFileName.LastIndexOf('$');
if (dollarPos == -1)
return -1;
outString += emitParser->mFileName.Substring(dollarPos + 1);
if (dollarPos != -1)
outString += emitParser->mFileName.Substring(dollarPos + 1);
}
outString += "\n";
}