Slightly better that way.
svn-id: r19085
This commit is contained in:
parent
fe6b21129d
commit
3e03ca6855
1 changed files with 4 additions and 2 deletions
|
@ -1415,8 +1415,10 @@ void Serializer::saveArrayOf(void *b, int len, int datasize, byte filetype) {
|
|||
uint32 data;
|
||||
|
||||
// speed up byte arrays
|
||||
if (len > 0 && datasize == 1 && filetype == sleByte) {
|
||||
saveBytes(b, len);
|
||||
if (datasize == 1 && filetype == sleByte) {
|
||||
if (len > 0) {
|
||||
saveBytes(b, len);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue