mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +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 (BeginArray(key))
|
||||||
{
|
{
|
||||||
|
if (isReading())
|
||||||
|
{
|
||||||
|
int max = ArraySize();
|
||||||
|
if (max < count) count = max;
|
||||||
|
}
|
||||||
for (int i = 0; i < count; i++)
|
for (int i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
Serialize(*this, nullptr, obj[i], def ? &def[i] : nullptr);
|
Serialize(*this, nullptr, obj[i], def ? &def[i] : nullptr);
|
||||||
|
|
Loading…
Reference in a new issue