summaryrefslogtreecommitdiff
path: root/src/lua5/im_image.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua5/im_image.lua')
-rw-r--r--src/lua5/im_image.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua5/im_image.lua b/src/lua5/im_image.lua
index 03e80f6..5eb9fd4 100644
--- a/src/lua5/im_image.lua
+++ b/src/lua5/im_image.lua
@@ -17,7 +17,7 @@ function im.ImageCreateBased(image, width, height, color_space, data_type)
if type(data_type) == "function" then data_type = data_type(image) end
-- create a new image
- new_image = im.ImageCreate(width, height, color_space, data_type)
+ local new_image = im.ImageCreate(width, height, color_space, data_type)
image:CopyAttributes(new_image)
if (image:HasAlpha()) then new_image:AddAlpha() end
return new_image