uses
GikoSystem;
-
//! \83R\83\93\83X\83g\83\89\83N\83^
constructor TMoveHistory.Create( max : Integer );
begin
inherited Create;
FIndex := 0;
-
- SetHistoryMax( GikoSys.Setting.MoveHistorySize );
+ // \82È\82º\82ª\83f\83o\83b\83O\92\86\82ÉGikoSys\82ªnil\82Ì\8e\9e\82ª\82 \82Á\82½???
+ if (GikoSys = nil) then begin
+ SetHistoryMax( max );
+ end else begin
+ SetHistoryMax( GikoSys.Setting.MoveHistorySize );
+ end;
end;
//! \88Ú\93®\97\9a\97ð\82Ì\83A\83C\83e\83\80\92Ç\89Á
function TMoveHistory.pushItem( item: TMoveHistoryItem): Integer;