crash hotfix

This commit is contained in:
Mestima 2021-10-06 17:42:29 +03:00
parent 656364ea18
commit 4c4eff6b6d
No known key found for this signature in database
GPG Key ID: 30B59EB1D7F18807

View File

@ -45,7 +45,7 @@ local function GetWatch(watchType)
end end
end end
end end
if (watch ~= nil) then return watch end if (watch ~= nil or bagitems == nil) then return watch end
for k, v in pairs(bagitems) do for k, v in pairs(bagitems) do
if (v.prefab == watchType and v:HasTag("pocketwatch_inactive")) then if (v.prefab == watchType and v:HasTag("pocketwatch_inactive")) then
watch = v watch = v