1343 {
1344 int slot_id = InventorySlots.GetSlotIdFromString( slot );
1345
1347 if( old_cont )
1348 {
1349 m_Body.RemoveItem( old_cont );
1351 delete old_cont;
1354 Inventory.GetInstance().UpdateConsoleToolbar();
1355 }
1356
1358 if( old_att_cont )
1359 {
1362 m_Body.RemoveItem( old_att_cont );
1363 delete old_att_cont;
1366 Inventory.GetInstance().UpdateConsoleToolbar();
1367 }
1368 RecomputeOpenedContainers();
1369 }
void Inventory(LayoutHolder parent)
void CargoContainer(LayoutHolder parent, bool is_attachment=false)
ref map< EntityAI, ref CargoContainer > m_AttachmentCargos
ref map< EntityAI, AttachmentsWrapper > m_AttachmentAttachmentsContainers
ref map< EntityAI, ref Attachments > m_AttachmentAttachments