Skip to content

Commit

Permalink
Merge pull request #208 from BusinessDuck/patch-1
Browse files Browse the repository at this point in the history
Update decoder.ts
  • Loading branch information
Tsopic authored Mar 4, 2024
2 parents 333b7ba + 1ad248e commit 1fd97ba
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 1fd97ba

Please sign in to comment.