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