From c68ea19e8dd54c497b0fd3f16f26d063318e8bf6 Mon Sep 17 00:00:00 2001 From: JacobF Date: Thu, 1 Sep 2011 17:16:55 -0400 Subject: Now SAOs will reflect changes to their temporary inventory object Also, the temp item wasn't being deleted, might have been a memory leak. Now you will only eat 1 item off a stack --- src/content_sao.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/content_sao.cpp') diff --git a/src/content_sao.cpp b/src/content_sao.cpp index 638f50c9d..0bb518c16 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -226,6 +226,11 @@ void ItemSAO::rightClick(Player *player) if(to_be_deleted) m_removed = true; + else + // Reflect changes to the item here + m_inventorystring = item->getItemString(); + + delete item; } /* -- cgit v1.2.3