mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- SW: fixed recursive saving of panel sprites
This commit is contained in:
parent
bad57f6a5f
commit
0e82d75325
1 changed files with 8 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue