Commit 4168249f authored by Chunchi Che's avatar Chunchi Che

fix small

parent 5dabab3e
...@@ -20,13 +20,10 @@ export default class ErrorMsg implements StocAdapter { ...@@ -20,13 +20,10 @@ export default class ErrorMsg implements StocAdapter {
const reader = new BufferReader(this.packet.exData); const reader = new BufferReader(this.packet.exData);
const errorType = reader.readUint8(); const errorType = reader.readUint8();
let errorCode = 0; reader.readUint8();
if (errorType != 3) { reader.readUint8();
reader.readUint8(); reader.readUint8();
reader.readUint8(); const errorCode = reader.readInt32();
reader.readUint8();
errorCode = reader.readInt32();
}
return new ygopro.YgoStocMsg({ return new ygopro.YgoStocMsg({
stoc_error_msg: new ygopro.StocErrorMsg({ stoc_error_msg: new ygopro.StocErrorMsg({
......
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