File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -313,19 +313,19 @@ private void ReadTiberiumOverlays(Rules rules)
313313
314314 var defaultOverlays = rules . OverlayTypes . Slice ( TiberiumImageToOverlays [ tiberiumType . Image ] . StartIndex , TiberiumImageToOverlays [ tiberiumType . Image ] . Count ) ;
315315 tiberiumType . Overlays . AddRange ( defaultOverlays ) ;
316- defaultOverlays . ForEach ( ot =>
316+ foreach ( var overlayType in defaultOverlays )
317317 {
318- if ( ot . TiberiumType == null )
318+ if ( overlayType . TiberiumType == null )
319319 {
320- ot . TiberiumType = tiberiumType ;
320+ overlayType . TiberiumType = tiberiumType ;
321321 }
322322 else
323323 {
324324 throw new INIConfigException (
325- $ "OverlayType { ot . ININame } is already associated with Tiberium { ot . TiberiumType . Index } ({ ot . TiberiumType . ININame } ), " +
325+ $ "OverlayType { overlayType . ININame } is already associated with Tiberium { overlayType . TiberiumType . Index } ({ overlayType . TiberiumType . ININame } ), " +
326326 $ "but it is also set to be associated with Tiberium { tiberiumType . Index } ({ tiberiumType . ININame } )!") ;
327327 }
328- } ) ;
328+ }
329329
330330 continue ;
331331 }
You can’t perform that action at this time.
0 commit comments