Ensure isValid is always set

This commit is contained in:
Parnic
2018-03-31 08:42:16 -05:00
parent 2f29da16d8
commit a383f8ca97

View File

@ -18,6 +18,8 @@ exports.SLChemDataMessage = class SLChemDataMessage extends SLMessage {
decode() {
super.decode();
this.isValid = false;
let sentinel = this.readInt32LE();
if (sentinel === 42) {
this.isValid = true;