Skip to content

Commit

Permalink
Merge pull request #10 from puzzlepaint/patch-1
Browse files Browse the repository at this point in the history
Write correct number of frames
  • Loading branch information
HTLife authored Aug 13, 2018
2 parents 666ded5 + da51745 commit acfd6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void convertToKlg(
std::string filename = strKlgFileName;//"test2.klg";
FILE * logFile = fopen(filename.c_str(), "wb+");

int32_t numFrames = (int32_t)vec_info.size() - 1;
int32_t numFrames = (int32_t)vec_info.size();

fwrite(&numFrames, sizeof(int32_t), 1, logFile);

Expand Down

0 comments on commit acfd6a1

Please sign in to comment.