Misc fixes

This commit is contained in:
hondacrx
2021-09-26 14:30:08 -04:00
parent c67811c52e
commit 53349a5771
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4127,7 +4127,7 @@ namespace Game.AI
return false;
bool smart = true;
if (gameObject.GetAI<SmartAI>() == null)
if (gameObject.GetAI<SmartGameObjectAI>() == null)
smart = false;
if (!smart && !silent)
+1 -1
View File
@@ -1644,7 +1644,7 @@ namespace Game
if (item.GetPos() == dstPos)
continue;
if (_player.CanEquipItem(ItemConst.NullSlot, out dstPos, item, false) != InventoryResult.Ok)
if (_player.CanEquipItem(i, out dstPos, item, true) != InventoryResult.Ok)
continue;
GetPlayer().SwapItem(item.GetPos(), dstPos);