fixed some error

This commit is contained in:
세젤귀 고양이들 2021-12-24 19:17:00 +09:00
parent 833d219cb4
commit 3f8b0a4570

View file

@ -33,9 +33,11 @@ local _,advancedTween = pcall(require,"src.libs.AdvancedTween"); ---@module src.
local idSpace = {}; local idSpace = {};
function module.init(id) function module.init(id)
local last = idSpace[id]; if id then
if last then local last = idSpace[id];
return last; if last then
return last;
end
end end
local this = {items = {}}; local this = {items = {}};
@ -51,7 +53,9 @@ function module.init(id)
--this.tween = tween; --this.tween = tween;
--this.plugin = plugin; --this.plugin = plugin;
idSpace[id] = this; if id then
idSpace[id] = this;
end
return this; return this;
end end