mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 11:30:44 +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)
|
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())
|
if (arc.isWriting())
|
||||||
{
|
{
|
||||||
unsigned siz = pspAsArray.Size();
|
unsigned siz = pspAsArray.Size();
|
||||||
arc("panelcount", siz);
|
arc("panelcount", siz);
|
||||||
}
|
}
|
||||||
if (arc.BeginArray("panelsprites"))
|
|
||||||
{
|
|
||||||
for (auto psp : pspAsArray)
|
|
||||||
{
|
|
||||||
arc(nullptr, *psp);
|
|
||||||
}
|
|
||||||
arc.EndArray();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue