Browse Source

Inventory can no longer fold into itself (delete item) when you move item to its original slot holding left click

Emagi 2 years ago
parent
commit
3c42c9a9f2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      EQ2/source/WorldServer/Commands/Commands.cpp

+ 3 - 0
EQ2/source/WorldServer/Commands/Commands.cpp

@@ -6730,6 +6730,9 @@ void Commands::Command_Inventory(Client* client, Seperator* sep, EQ2_RemoteComma
 				return;
 			}
 			
+			if(to_slot == item->details.slot_id && (bag_id < 0 || bag_id == item->details.inv_slot_id)) {
+				return;
+			}
 			if(item->details.item_locked)
 			{
 				client->SimpleMessage(CHANNEL_COLOR_RED, "You cannot move the item in use.");