From bb98f8eb1656db1293c9e7c6e900519d1fcf20bf Mon Sep 17 00:00:00 2001
From: ZhilkinSerg <ZhilkinSerg@users.noreply.github.com>
Date: Thu, 12 Aug 2021 04:11:01 +0300
Subject: [PATCH] Backporting #49759

---
 src/iexamine.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/iexamine.cpp b/src/iexamine.cpp
index 155db75fd8429..187f9da60a7a4 100644
--- a/src/iexamine.cpp
+++ b/src/iexamine.cpp
@@ -5024,7 +5024,7 @@ void iexamine::autodoc( player &p, const tripoint &examp )
                 patient.install_bionics( ( *itemtype ), installer, true, has_install_program ? 10 : -1 );
 
                 if( has_install_program ) {
-                    patient.consume_items( progs );
+                    p.consume_items( progs );
                 }
             }
             break;