vendor bugfix

This commit is contained in:
krrios 2007-09-08 07:44:08 +00:00
parent c718261654
commit ab43049dd7

View file

@ -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;