summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturecache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lltexturecache.cpp')
-rw-r--r--indra/newview/lltexturecache.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp
index 534d19874c..86ef9e95cf 100644
--- a/indra/newview/lltexturecache.cpp
+++ b/indra/newview/lltexturecache.cpp
@@ -1056,12 +1056,10 @@ struct lru_data
typedef const lru_data* lru_data_ptr;
bool operator()(const lru_data_ptr& a, const lru_data_ptr& b) const
{
- if (a->time > b->time)
- return true;
- else if (b->time > a->time)
- return false;
+ if(a->time == b->time)
+ return (a->index < b->index);
else
- return a->index < b->index;
+ return (a->time >= b->time);
}
};
};