Browse Source

cmScore.c : Fixed assert() bug in _cmScParseFile().

master
Kevin Larke 9 years ago
parent
commit
cf53227561
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/cmScore.c

+ 1
- 1
app/cmScore.c View File

@@ -1332,7 +1332,7 @@ cmScRC_t _cmScParseFile( cmSc_t* p, cmCtx_t* ctx, const cmChar_t* fn )
1332 1332
             bool     pedalDnFl = d1 >= 64;
1333 1333
             unsigned pedalIdx  = d0 - pedalBaseMidiId;
1334 1334
 
1335
-            assert( pedalBaseMidiId <= pedalIdx && pedalIdx < pedalN );
1335
+            assert( pedalBaseMidiId <= d0 && pedalIdx < pedalN );
1336 1336
 
1337 1337
             // store the pedal type identifer in the pitch field
1338 1338
             p->array[j].pitch = d0;

Loading…
Cancel
Save