SwitchItemToCursor

SwitchItemToCursor
void SwitchItemToCursor ( int X, int Y, int Window )

Function is located within Inventory/script/INV_Funcs.dh

Parameters:

 * X/Y - integer coordinates of the array position
 * Window - integer pointer to the Window pointer array (ie WINDOW_EQUIPMENT, WINDOW_WEAPON)

Description:
Called if the cursor index is empty, copies the index, durability, modifier and amount from the array origin, then runs ClearInventorySize to remove the data from the array. Plays the 'PICKUPSOUND' struct field from ItemList[].

Sister function is SwitchCursorToItem.