Slightly better that way.

svn-id: r19085
This commit is contained in:
Gregory Montoir 2005-10-14 19:51:56 +00:00
parent fe6b21129d
commit 3e03ca6855

View file

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