version 1.4.46b
[polyglot.git] / xboard2uci.c
index 2097de9..e490906 100644 (file)
@@ -774,7 +774,7 @@ void format_xboard_option_line(char * option_line, option_t *opt){
     strcat(option_line,option_string);\r
     sprintf(option_string," -%s",opt->type);\r
     strcat(option_line,option_string);\r
-    if(!IS_BUTTON(opt) && strcmp(opt->type,"combo")){\r
+    if(!IS_BUTTON(opt->type) && strcmp(opt->type,"combo")){\r
         if(strcmp(opt->type,"check")){\r
             sprintf(option_string," %s",opt->value);\r
         }else{\r
@@ -785,11 +785,11 @@ void format_xboard_option_line(char * option_line, option_t *opt){
         }\r
         strcat(option_line,option_string);\r
     }\r
-    if(IS_SPIN(opt)){\r
+    if(IS_SPIN(opt->type)){\r
         sprintf(option_string," %s",opt->min);\r
             strcat(option_line,option_string);\r
     }\r
-    if(IS_SPIN(opt)){\r
+    if(IS_SPIN(opt->type)){\r
         sprintf(option_string," %s",opt->max);\r
         strcat(option_line,option_string);\r
     }\r