(dc09b0993) Fix bots not aiming with the welding tool when trying to repair, because of a dump error when checking the RequireAimToUse property.

This commit is contained in:
Joonas Rikkonen
2019-04-05 16:18:08 +03:00
parent d259ac40a2
commit f6bf7d9219
3 changed files with 1 additions and 142 deletions
@@ -161,7 +161,7 @@ namespace Barotrauma
private void OperateRepairTool(float deltaTime)
{
character.CursorPosition = Item.Position;
if (Item.RequireAimToUse)
if (repairTool.Item.RequireAimToUse)
{
character.SetInput(InputType.Aim, false, true);
}