Merge pull request #58 from sean-callahan/fix-save-bug

Fix nil pointer in saves
This commit is contained in:
Mitch Roote 2016-10-24 10:41:55 -04:00 committed by GitHub
commit bd6a1f8ab5

View File

@ -22,6 +22,7 @@ func (s Save) String() string {
// Lists save files in factorio/saves
func listSaves(saveDir string) (saves []Save, err error) {
saves = []Save{}
err = filepath.Walk(saveDir, func(path string, info os.FileInfo, err error) error {
if info.IsDir() && info.Name() == "saves" {
return nil