diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/llsdserialize_xml.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linden/indra/llcommon/llsdserialize_xml.cpp b/linden/indra/llcommon/llsdserialize_xml.cpp index 3545309..7c3dcbf 100644 --- a/linden/indra/llcommon/llsdserialize_xml.cpp +++ b/linden/indra/llcommon/llsdserialize_xml.cpp | |||
@@ -394,7 +394,9 @@ S32 LLSDXMLParser::Impl::parse(std::istream& input, LLSD& data) | |||
394 | if (status == XML_STATUS_ERROR) | 394 | if (status == XML_STATUS_ERROR) |
395 | { | 395 | { |
396 | std::string error_string(XML_ErrorString(XML_GetErrorCode( mParser ))); | 396 | std::string error_string(XML_ErrorString(XML_GetErrorCode( mParser ))); |
397 | if (input.gcount() == 0) | 397 | // I know, this if seems odd, but it fixes a problem with not being able to see nearby sims, or TP to other sims. |
398 | // No idea why. | ||
399 | if (input && (input.gcount() == 0)) | ||
398 | { | 400 | { |
399 | // nothing to do -- MC | 401 | // nothing to do -- MC |
400 | data = LLSD(); | 402 | data = LLSD(); |