Crash fix.

This commit is contained in:
leo 2014-04-24 23:50:32 +00:00
parent 6d4e57b343
commit c7cdb96abb

View file

@ -517,7 +517,6 @@ bool Project::FileLoad(lcFile* file, bool bUndo, bool bMerge)
}
}
for (int PieceIdx = FirstNewPiece; PieceIdx < mPieces.GetSize(); PieceIdx++)
{
Piece* Piece = mPieces[PieceIdx];
@ -752,7 +751,7 @@ void Project::FileSave(lcFile* file, bool bUndo)
i = m_nCurStep; file->WriteS32(&i, 1);
file->WriteU32(0);//m_nScene
file->WriteS32(&i, mPieces.GetSize());
file->WriteS32(mPieces.GetSize());
for (int PieceIdx = 0; PieceIdx < mPieces.GetSize(); PieceIdx++)
mPieces[PieceIdx]->FileSave(*file);