Changeset 290 for trunk/Start.pas
- Timestamp:
- Feb 26, 2021, 11:56:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Start.pas
r283 r290 244 244 begin 245 245 FreeAndNil(Bitmap); 246 inherited Destroy;246 inherited; 247 247 end; 248 248 … … 471 471 Brains.GetByKind(btAI, AIBrains); 472 472 BrainDefault := Brains[0]; 473 AIBrains.Free;473 FreeAndNil(AIBrains); 474 474 end; // default AI not found, use any 475 475 … … 698 698 end; 699 699 end; 700 AIBrains.Free;700 FreeAndNil(AIBrains); 701 701 end; 702 702 … … 1411 1411 if AIBrains[I].Flags and fMultiple <> 0 then 1412 1412 OfferBrain(AIBrains[I], FixedLines); 1413 AIBrains.Free;1413 FreeAndNil(AIBrains); 1414 1414 end else begin 1415 1415 FixedLines := 0; … … 1439 1439 or (Brains[I] = PlayersBrain[PlayerPopupIndex]) then 1440 1440 OfferBrain(AIBrains[i], FixedLines); 1441 AIBrains.Free;1441 FreeAndNil(AIBrains); 1442 1442 end; 1443 1443 end;
Note:
See TracChangeset
for help on using the changeset viewer.