1 Commits
Author SHA1 Message Date
Nibodhika 9a3f273172 Last line gets read twice
because savegame.get_line() will consume the line, but eof_reached will only be reached when trying to read the next line the code inside the while gets called twice for the last line.

Which wouldn't be a problem, except currentline.parse_json(null) does not alter currentline.

I think an even better way would be

```
while (!savegame.eof_reached()):
    var line = savegame.get_line()
    if not line:
        continue

     currentline.parse_json(line)
     # Remaining code here
```
2017-07-30 12:05:47 -03:00