mirror of https://github.com/odrling/Aegisub
Fix for keyframe file reading
Originally committed to SVN as r1624.
This commit is contained in:
parent
d761baadf3
commit
8d797046a7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue