diff --git a/HarmonySrc/WolfBag.cs b/HarmonySrc/WolfBag.cs index aa01bed..bf701cd 100644 --- a/HarmonySrc/WolfBag.cs +++ b/HarmonySrc/WolfBag.cs @@ -266,12 +266,13 @@ namespace NecromancerTome Audio.Manager.PlayInsidePlayerHead("ui_denied"); return false; } + string name = src.itemValue.ItemClass?.GetItemName(); // до SetSlot: src - сама ячейка сумки, очистится ItemStack rest = src.Clone(); rest.count = left; b.SetSlot(_idx, left > 0 ? rest : ItemStack.Empty.Clone()); Save(); Audio.Manager.PlayInsidePlayerHead("UseActions/takeall1"); - Debug.Log("[NecromancerTome] WolfBag: из сумки в контейнер " + src.itemValue.ItemClass.GetItemName() + " x" + moved + " - " + Describe()); + Debug.Log("[NecromancerTome] WolfBag: из сумки в контейнер " + name + " x" + moved + " - " + Describe()); return true; }