diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 8cf9a1e839214cd0e9f237f92096757355e545cb..ef4e763b77b46e6ae752bb8a12b1f369229870dd 100644 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -1598,7 +1598,7 @@ void LLVOCache::readGenericExtrasFromCache(U64 handle, const LLUUID& id, LLVOCac LL_DEBUGS("GLTF") << "Beginning reading extras cache for handle " << handle << ", " << num_entries << " entries" << LL_ENDL; LLSD entry_llsd; - for (U32 i = 0; i < num_entries && in.good(); i++) + for (U32 i = 0; i < num_entries && !in.eof(); i++) { static const U32 max_size = 4096; bool success = LLSDSerialize::deserialize(entry_llsd, in, max_size);