mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-24 10:37:45 +00:00
oops
This commit is contained in:
parent
3ca9d03776
commit
99f7cbe966
1 changed files with 2 additions and 1 deletions
|
@ -972,7 +972,7 @@ void Sapphire::Network::GameConnection::inventoryEquipRecommendedItemsHandler( c
|
||||||
{
|
{
|
||||||
for( int i = Common::Bag0; i <= Common::Bag3; i++ )
|
for( int i = Common::Bag0; i <= Common::Bag3; i++ )
|
||||||
{
|
{
|
||||||
freeContainerSlot = player.getFreeContainerSlot( Common::Bag0 );
|
freeContainerSlot = player.getFreeContainerSlot( i );
|
||||||
if( freeContainerSlot.second > 0 )
|
if( freeContainerSlot.second > 0 )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -981,6 +981,7 @@ void Sapphire::Network::GameConnection::inventoryEquipRecommendedItemsHandler( c
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendUrgent( "No free inventory space to swap out item at container:{}, slot{}", Common::GearSet0, slot );
|
player.sendUrgent( "No free inventory space to swap out item at container:{}, slot{}", Common::GearSet0, slot );
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.queuePacket( std::make_shared< UpdateInventorySlotPacket >( player.getId(), freeContainerSlot.second, freeContainerSlot.first, *equippedItem, 0 ) );
|
player.queuePacket( std::make_shared< UpdateInventorySlotPacket >( player.getId(), freeContainerSlot.second, freeContainerSlot.first, *equippedItem, 0 ) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue