diff --git a/panda/src/downloader/httpDate.cxx b/panda/src/downloader/httpDate.cxx index 68c61424c4..07a6008c0c 100644 --- a/panda/src/downloader/httpDate.cxx +++ b/panda/src/downloader/httpDate.cxx @@ -280,7 +280,9 @@ input(istream &in) { return false; } - (*this) = HTTPDate(date); + // Visual C++ has problems with "(*this) = HTTPDate(date)". + HTTPDate new_date(date); + (*this) = new_date; return is_valid(); }