Fix code ordering in ChessRules.constructor
authorBenjamin Auder <benjamin.auder@somewhere>
Mon, 19 Nov 2018 01:55:57 +0000 (02:55 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Mon, 19 Nov 2018 01:55:57 +0000 (02:55 +0100)
public/javascripts/base_rules.js

index f08c272..7f4052a 100644 (file)
@@ -51,9 +51,9 @@ class ChessRules
        {
                this.moves = moves;
                // Use fen string to initialize variables, flags and board
-               this.initVariables(fen);
                this.board = VariantRules.GetBoard(fen);
                this.flags = VariantRules.GetFlags(fen);
+               this.initVariables(fen);
        }
 
        initVariables(fen)