Skip to content

Commit

Permalink
Update decoder.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
BusinessDuck authored Mar 4, 2024
1 parent 333b7ba commit 1ad248e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/io/decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3414,9 +3414,10 @@ class OrderDecoder {
readConditions(): void {
if (this.serverVersion >= MIN_SERVER_VER.PEGGED_TO_BENCHMARK) {
const nConditions = this.decoder.readInt();
this.order.conditions = new Array(nConditions);

if (nConditions > 0) {
this.order.conditions = new Array(nConditions);

for (let i = 0; i < nConditions; i++) {
const orderConditionType = this.decoder.readInt();

Expand Down

0 comments on commit 1ad248e

Please sign in to comment.