We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
false
nil
1 parent 535945b commit cf050a9Copy full SHA for cf050a9
lua/utilities.lua
@@ -590,14 +590,22 @@ function SerializableDeepCopy(t)
590
local st = serializableTypes
591
local type_t = type(t)
592
if type_t ~= 'table' then
593
- return st[type_t] and t or tostring(t)
+ if st[type_t] then
594
+ return t
595
+ else
596
+ return tostring(t)
597
+ end
598
end
599
600
local backrefs = {}
601
local function CreateSerializableAny(_t)
602
local type_t = type(_t)
603
- return st[type_t] and _t or tostring(_t)
604
605
+ return _t
606
607
+ return tostring(_t)
608
609
610
611
local b = backrefs[_t]
0 commit comments