Skylander Portal: Clearing and Reloading fix
This commit is contained in:
parent
95ce41ac56
commit
2585ae9b2c
|
@ -1236,6 +1236,12 @@ bool SkylanderPortal::RemoveSkylander(u8 sky_num)
|
|||
std::lock_guard lock(sky_mutex);
|
||||
auto& skylander = skylanders[sky_num];
|
||||
|
||||
if (skylander.sky_file.IsOpen())
|
||||
{
|
||||
skylander.Save();
|
||||
skylander.sky_file.Close();
|
||||
}
|
||||
|
||||
if (skylander.status & 1)
|
||||
{
|
||||
skylander.status = Skylander::REMOVING;
|
||||
|
|
|
@ -332,7 +332,6 @@ void SkylanderPortalWindow::ClearSkylander(u8 slot)
|
|||
QMessageBox::Ok);
|
||||
return;
|
||||
}
|
||||
system.GetSkylanderPortal().RemoveSkylander(slot_infos->portal_slot);
|
||||
m_sky_slots[slot].reset();
|
||||
UpdateEdits();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue