From ab43049dd7461d1481d17af49a506fe5e46789dd Mon Sep 17 00:00:00 2001 From: krrios Date: Sat, 8 Sep 2007 07:44:08 +0000 Subject: [PATCH] vendor bugfix --- Scripts/Gumps/PlayerVendorGumps.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Gumps/PlayerVendorGumps.cs b/Scripts/Gumps/PlayerVendorGumps.cs index d7850782f..cf90a859f 100644 --- a/Scripts/Gumps/PlayerVendorGumps.cs +++ b/Scripts/Gumps/PlayerVendorGumps.cs @@ -55,7 +55,7 @@ namespace Server.Gumps if ( info.ButtonID == 1 ) { - if ( !m_VI.Valid ) + if ( !m_VI.Valid || !m_VI.Item.IsChildOf( m_Vendor.Backpack ) ) { m_Vendor.SayTo( from, 503216 ); // You can't buy that. return;