Skip to content

Commit

Permalink
proper assertion to handle empty patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Aug 26, 2015
1 parent 10c68c8 commit f09a681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/FamiTrackerDoc.cpp
Expand Up @@ -2311,7 +2311,7 @@ bool CFamiTrackerDoc::ReadBlock_Patterns(CDocumentFile *pDocFile)
ASSERT_FILE_DATA(Track < MAX_TRACKS);
ASSERT_FILE_DATA(Channel < MAX_CHANNELS);
ASSERT_FILE_DATA(Pattern < MAX_PATTERN);
ASSERT_FILE_DATA((Items - 1) < MAX_PATTERN_LENGTH);
ASSERT_FILE_DATA(Items <= MAX_PATTERN_LENGTH);

CPatternData *pTrack = GetTrack(Track);

Expand Down

0 comments on commit f09a681

Please sign in to comment.