• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

ギコナビ


Commit MetaInfo

Revisionfec7ca3cbbe941f68587b605811917a117951c1a (tree)
Time2007-05-15 07:00:59
Authorh677 <h677>
Commiterh677

Log Message

デバッグ中、初期化時にGikosysがnilの場合があったので、
そのときに落ちないようにだけ修正

Change Summary

Incremental Difference

--- a/MoveHistoryItem.pas
+++ b/MoveHistoryItem.pas
@@ -11,7 +11,7 @@ uses
1111 SHDocVw_TLB,
1212 MSHTML_TLB,
1313 {$IFEND}
14- OleCtrls, ActiveX, GikoSystem;
14+ OleCtrls, ActiveX;
1515 type
1616
1717 TMoveHistoryItem = class(TObject)
@@ -53,6 +53,8 @@ var
5353
5454 implementation
5555
56+uses
57+ GikoSystem;
5658
5759 //! ƒRƒ“ƒXƒgƒ‰ƒNƒ^
5860 constructor TMoveHistory.Create( max : Integer );
@@ -60,8 +62,12 @@ begin
6062 inherited Create;
6163
6264 FIndex := 0;
63-
64- SetHistoryMax( GikoSys.Setting.MoveHistorySize );
65+ // ‚È‚º‚ªƒfƒoƒbƒO’†‚ÉGikoSys‚ªnil‚ÌŽž‚ª‚ ‚Á‚½???
66+ if (GikoSys = nil) then begin
67+ SetHistoryMax( max );
68+ end else begin
69+ SetHistoryMax( GikoSys.Setting.MoveHistorySize );
70+ end;
6571 end;
6672 //! ˆÚ“®—š—ð‚̃AƒCƒeƒ€’ljÁ
6773 function TMoveHistory.pushItem( item: TMoveHistoryItem): Integer;