missing close

This commit is contained in:
olebeck 2022-09-09 15:23:45 +02:00
parent e8da2733b1
commit a879e4cbba
1 changed files with 1 additions and 0 deletions

View File

@ -432,6 +432,7 @@ func (w *WorldState) SaveAndReset() {
if w.saveImage {
f, _ := os.Create(folder + ".png")
png.Encode(f, w.ui.ToImage())
f.Close()
}
// zip it