mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-27 11:47:32 +01:00
Merge pull request 'Fix TGA file writing on Windows' (#1985) from fix-tga-file-writing-on-windows into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1985 Reviewed-by: AFCMS <afcms@noreply.git.minetest.land>
This commit is contained in:
commit
c2ae28aec1
@ -84,7 +84,7 @@ function image:encode()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function image:save(filename)
|
function image:save(filename)
|
||||||
local f = assert(io.open(filename, "w"))
|
local f = assert(io.open(filename, "wb"))
|
||||||
f:write(self.data)
|
f:write(self.data)
|
||||||
f:close()
|
f:close()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user