From 8890be4e87cc1b62ecfdadd2f2e5c19434001507 Mon Sep 17 00:00:00 2001 From: Nicholas Dunn Date: Sat, 7 Apr 2018 22:19:15 -0400 Subject: [PATCH] STDLIB Update Former-commit-id: 123d2e77ea0456cd5468a3cd5a33eacc7ddf91fe Former-commit-id: 908baf1010f611b744141c9865a7b7345aa22019 --- stdlib/data/data.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/data/data.lua b/stdlib/data/data.lua index 5af030a4..a75d6199 100644 --- a/stdlib/data/data.lua +++ b/stdlib/data/data.lua @@ -435,8 +435,8 @@ function Data:get(object, object_type, opts) end if new then - new._valid = self.type or 'data' - new._type = self.type or 'data' + new._valid = new.type -- can change + new._type = new.type -- static new._options = opts setmetatable(new, self._mt) new:Flags()