mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 17:21:24 +00:00
- fixed: Both array serializers need the bounds check.
This commit is contained in:
parent
68dc75bf9e
commit
d5b771afdd
1 changed files with 5 additions and 0 deletions
|
@ -134,6 +134,11 @@ public:
|
|||
}
|
||||
if (BeginArray(key))
|
||||
{
|
||||
if (isReading())
|
||||
{
|
||||
int max = ArraySize();
|
||||
if (max < count) count = max;
|
||||
}
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
Serialize(*this, nullptr, obj[i], def ? &def[i] : nullptr);
|
||||
|
|
Loading…
Reference in a new issue