Implement displaying of variant tag in Game List
[xboard.git] / pgntags.c
index 2d9cfb8..f13eb96 100644 (file)
--- a/pgntags.c
+++ b/pgntags.c
@@ -114,8 +114,8 @@ ParsePGNTag (char *tag, GameInfo *gameInfo)
        success = TRUE;
     } else if (StrCaseCmp(name, "Variant") == 0) {
         /* xboard-defined extension */
+       success = StrSavePtr(value, &gameInfo->variantName) != NULL;
         gameInfo->variant = StringToVariant(value);
-       success = TRUE;
     } else if (StrCaseCmp(name, "VariantMen") == 0) {
         /* for now ignore this tag, as we have no method yet */
         /* for assigning the pieces to XBoard pictograms     */