Fix saving of movie data for port2

This commit is contained in:
Ilari Liusvaara 2012-03-13 06:36:48 +02:00
parent 558d4f9318
commit 0fe0e6c147

View file

@ -780,10 +780,9 @@ public:
{
size_t offset = 0;
offset += system_serialize(backing, buf);
for(size_t i = 0; i < MAX_PORTS; i++) {
for(size_t i = 0; i < MAX_PORTS; i++)
offset += pinfo[i]->serialize(backing + offsets[i], buf + offset);
buf[offset++] = (i < MAX_PORTS - 1) ? '|' : '\0';
}
buf[offset++] = '\0';
}
/**
* Return copy with dedicated memory.