X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff0ea71ceacc214261f90946cfa7c9b5980c40fd..4f2570aaf16049c11fc50d85cb15952e73bbab85:/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();