Commit 808073d5 authored by nanahira's avatar nanahira

fix

parent 4765d0c6
...@@ -57,7 +57,7 @@ let DuelLogPlayer = DuelLogPlayer_1 = class DuelLogPlayer extends BasePlayer_1.B ...@@ -57,7 +57,7 @@ let DuelLogPlayer = DuelLogPlayer_1 = class DuelLogPlayer extends BasePlayer_1.B
p.cardCount = info.cardCount; p.cardCount = info.cardCount;
p.isFirst = info.isFirst ? 1 : 0; p.isFirst = info.isFirst ? 1 : 0;
p.winner = info.winner ? 1 : 0; p.winner = info.winner ? 1 : 0;
p.startDeckBuffer = info.startDeckBuffer.toString("base64"); p.startDeckBuffer = info.startDeckBuffer?.toString("base64") || null;
p.setCurrentDeck(info.deck); p.setCurrentDeck(info.deck);
return p; return p;
} }
......
...@@ -73,7 +73,7 @@ export class DuelLogPlayer extends BasePlayer { ...@@ -73,7 +73,7 @@ export class DuelLogPlayer extends BasePlayer {
p.cardCount = info.cardCount; p.cardCount = info.cardCount;
p.isFirst = info.isFirst ? 1 : 0; p.isFirst = info.isFirst ? 1 : 0;
p.winner = info.winner ? 1 : 0; p.winner = info.winner ? 1 : 0;
p.startDeckBuffer = info.startDeckBuffer.toString("base64"); p.startDeckBuffer = info.startDeckBuffer?.toString("base64") || null;
p.setCurrentDeck(info.deck); p.setCurrentDeck(info.deck);
return p; return p;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment