Fix for keyframe file reading

Originally committed to SVN as r1624.
This commit is contained in:
Niels Martin Hansen 2007-10-26 19:27:42 +00:00
parent d761baadf3
commit 8d797046a7
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ void KeyFrameFile::OpenAegiKeyFrames(TextFileReader& file, wxArrayInt& keyFrames
// Read lines
while (file.HasMoreLines()) {
cur = file.ReadLineFromFile();
if (!cur.IsEmpty() && cur.StartsWith(_T("#")) && cur.IsNumber()) {
if (!cur.IsEmpty() && !cur.StartsWith(_T("#")) && cur.IsNumber()) {
long temp;
cur.ToLong(&temp);
keyFrames.Add(temp);