Add forgotten files 1.4.70b
[polyglot.git] / book.c
diff --git a/book.c b/book.c
index 49c0962..6a7b167 100644 (file)
--- a/book.c
+++ b/book.c
@@ -60,7 +60,7 @@ bool book_is_open(){
 void book_open(const char file_name[]) {
 
    ASSERT(file_name!=NULL);
-   if(option_get_bool(Option,"BookLearn")){
+   if(FALSE && option_get_bool(Option,"BookLearn")){
        BookFile = fopen(file_name,"rb+");
    }else{
        BookFile = fopen(file_name,"rb");
@@ -186,6 +186,12 @@ void book_moves(list_t * list, const board_t * board) {
 
    if(BookFile==NULL) return;
 
+   // null keys are reserved for the header
+   if(board->key==U64(0x0)) return;
+   
+
+
+
    // init
 
    list_clear(list);