Skip to content

Commit

Permalink
Fix clip ID
Browse files Browse the repository at this point in the history
- Print correct clip ID on window
- Use correct clip ID on export
  • Loading branch information
julianxhokaxhiu committed Sep 20, 2020
1 parent 90fae2c commit 59a1a0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FF7SNDDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void CFF7SNDDlg::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
FF7SNDHEADER* hdr = (FF7SNDHEADER*)(hdrmem+hdroff[c]);

char buf[100];
sprintf(buf, "%05i", c);
sprintf(buf, "%05i", c+1);
dc.DrawText(CString(buf), CRect(rc.left+5,rc.top+1,rc.left+100,rc.bottom), 0);

sprintf(buf, "%i kB", hdr->length >> 10);
Expand Down Expand Up @@ -331,7 +331,7 @@ void CFF7SNDDlg::OnExtract()

CT2A chosenPath(dlgFolder.GetPathName());

sprintf(outPath, "%s/%d.wav", chosenPath.m_psz, idx);
sprintf(outPath, "%s/%d.wav", chosenPath.m_psz, idx + 1);

CFile fileIn, fileOut;
fileIn.Open(szDat, CFile::modeRead | CFile::shareDenyNone);
Expand Down

0 comments on commit 59a1a0e

Please sign in to comment.