Skip to content

Commit eb0dc65

Browse files
committed
Fixed issue where a case-insensitive string comparison was missing an equality operator
Removed unused code
1 parent 984f1e1 commit eb0dc65

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

all/GenerateWryeBashTags.pas

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -177,23 +177,8 @@ function Initialize: Integer;
177177

178178
AddMessage(#10);
179179

180-
// fail if the user loaded more plugins than expected
181180
BuildMasterPluginsList(kFile, slMasterPlugins);
182181

183-
// for i := 0 to Pred(FileCount) do begin
184-
// sMasterName := GetFileName(FileByIndex(i));
185-
//
186-
// if (sMasterName = 'Update.esm') or EndsText('.exe', sMasterName) then
187-
// continue;
188-
//
189-
// if slMasterPlugins.IndexOf(sMasterName) = -1 then
190-
// begin
191-
// LogError('Cannot continue because more plugins are loaded than expected');
192-
// bQuickExit := True;
193-
// exit;
194-
// end;
195-
// end;
196-
197182
LogInfo('Processing... Please wait. This could take a while.');
198183

199184
for i := 0 to Pred(RecordCount(kFile)) do
@@ -311,7 +296,7 @@ function ProcessRecord(e: IInterface): Integer;
311296
exit;
312297

313298
// exit if the record should not be processed
314-
if CompareText(sFileName, 'Dawnguard.esm') then
299+
if CompareText(sFileName, 'Dawnguard.esm') = 0 then
315300
begin
316301
iFormID := FileFormID(e);
317302
if (iFormID = $00016BCF)

0 commit comments

Comments
 (0)