Skip to content

Commit

Permalink
gems: force the percussive bank count to be at least 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Sep 7, 2018
1 parent 0ed77f1 commit 9a5a9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileFormats/format_gems_pat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ FfmtErrCode GEMS_PAT::loadFile(QString filePath, FmBank &bank)
if(bankCount > (128 * 128))
return FfmtErrCode::ERR_BADFORMAT;

bank.reset(bankCount, 0);
bank.reset(bankCount, 1);

for(unsigned i = 0; i < bankCount; ++i)
{
Expand Down

0 comments on commit 9a5a9b4

Please sign in to comment.