1344 {
1345 int slot_id = InventorySlots.GetSlotIdFromString( slot );
1346
1348 if( old_cont )
1349 {
1350 m_Body.RemoveItem( old_cont );
1352 delete old_cont;
1355 Inventory.GetInstance().UpdateConsoleToolbar();
1356 }
1357
1359 if( old_att_cont )
1360 {
1363 m_Body.RemoveItem( old_att_cont );
1364 delete old_att_cont;
1367 Inventory.GetInstance().UpdateConsoleToolbar();
1368 }
1369 RecomputeOpenedContainers();
1370 }
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