- SW: fixed recursive saving of panel sprites

This commit is contained in:
Christoph Oelckers 2021-08-30 14:58:12 +02:00
parent bad57f6a5f
commit 0e82d75325

View file

@ -288,19 +288,19 @@ void preSerializePanelSprites(FSerializer& arc)
void postSerializePanelSprites(FSerializer& arc)
{
if (arc.BeginArray("panelsprites"))
{
for(unsigned i = 0; i < pspAsArray.Size(); i++)
{
arc(nullptr, *pspAsArray[i]);
}
arc.EndArray();
}
if (arc.isWriting())
{
unsigned siz = pspAsArray.Size();
arc("panelcount", siz);
}
if (arc.BeginArray("panelsprites"))
{
for (auto psp : pspAsArray)
{
arc(nullptr, *psp);
}
arc.EndArray();
}
}
//---------------------------------------------------------------------------