From 87f5bedead77b568efc8c5b600cd28c872d24b8d Mon Sep 17 00:00:00 2001 From: Saggi Mizrahi Date: Sat, 5 Dec 2015 21:23:50 +0200 Subject: [PATCH] Change null to nil nil is the actual keyword. 'null' works in non strict mode as all undeclared variables are considered 'nil' in non strict mode. --- spine-lua/RegionAttachment.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-lua/RegionAttachment.lua b/spine-lua/RegionAttachment.lua index 5ed962dcf..6540a9c4c 100644 --- a/spine-lua/RegionAttachment.lua +++ b/spine-lua/RegionAttachment.lua @@ -45,8 +45,8 @@ function RegionAttachment.new (name) offset = {}, uvs = {}, r = 1, g = 1, b = 1, a = 1, - path = null, - rendererObject = null, + path = nil, + rendererObject = nil, regionOffsetX = 0, regionOffsetY = 0, regionWidth = 0, regionHeight = 0, regionOriginalWidth = 0, regionOriginalHeight = 0