- fixed: Both array serializers need the bounds check.

This commit is contained in:
Christoph Oelckers 2016-09-22 11:53:09 +02:00
parent 68dc75bf9e
commit d5b771afdd
1 changed files with 5 additions and 0 deletions

View File

@ -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);