mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
BUG: Add a missing null check for the source character in InventoryCraft()
This commit is contained in:
parent
c4acdfd338
commit
75c64f96bc
1 changed files with 1 additions and 1 deletions
|
@ -689,7 +689,7 @@ function InventoryCraft(Source, Target, GroupName, Craft, Refresh, PreConfigureI
|
|||
// Gets the item first
|
||||
if ((Target == null) || (GroupName == null)) return;
|
||||
let Item = InventoryGet(Target, GroupName);
|
||||
if ((Item == null) || !CraftingValidate(Craft, Item.Asset, CraftWarn, Source.IsPlayer())) return;
|
||||
if ((Item == null) || !CraftingValidate(Craft, Item.Asset, CraftWarn, Source?.IsPlayer())) return;
|
||||
|
||||
Item.Craft ??= Craft;
|
||||
Item.Property ??= {};
|
||||
|
|
Loading…
Add table
Reference in a new issue