X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff0ea71ceacc214261f90946cfa7c9b5980c40fd..aba4387c4c71fb812c6a07a7abb495606c5ef4af:/src/common/serbase.cpp diff --git a/src/common/serbase.cpp b/src/common/serbase.cpp index 7ad3a46705..6b89bea73d 100644 --- a/src/common/serbase.cpp +++ b/src/common/serbase.cpp @@ -76,7 +76,7 @@ void WXSERIAL(wxList)::LoadObject(wxObjectInputStream& s) wxList *list = (wxList *)Object(); int number, i; - list->DeleteContents( data_s.Read8() ); + list->DeleteContents( data_s.Read8() != 0 ); list->SetKeyType( (wxKeyType) data_s.Read8() ); number = data_s.Read32();