- [FIX] Bug that prevented saving

This commit is contained in:
2023-01-28 08:52:42 +01:00
parent 9467d72fbb
commit 65c3fb8c70

View File

@@ -39,8 +39,8 @@ mapa={
save = function(filename) save = function(filename)
mapa.name=filename mapa.name=filename
if file then
file = io.open("data/"..filename, "w") file = io.open("data/"..filename, "w")
if file then
io.output(file) io.output(file)
io.write(mapa.w.."\n") io.write(mapa.w.."\n")
io.write(mapa.h.."\n") io.write(mapa.h.."\n")