diff --git a/aegisub/keyframe.cpp b/aegisub/keyframe.cpp index 8efc6badb..903c514b8 100644 --- a/aegisub/keyframe.cpp +++ b/aegisub/keyframe.cpp @@ -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);