forked from ValveSoftware/source-sdk-2013
Fix SortEntry operator< not being const.
This solves a problem where the standard library expects it to be const, which causes compilation problems on GNU/Linux.
This commit is contained in:
@@ -867,7 +867,7 @@ public:
|
||||
int iFirstUsed;
|
||||
int iOrigIndex;
|
||||
|
||||
bool operator<(const SortEntry& rhs)
|
||||
bool operator<(const SortEntry& rhs) const
|
||||
{
|
||||
return iFirstUsed < rhs.iFirstUsed;
|
||||
}
|
||||
|
@@ -867,7 +867,7 @@ public:
|
||||
int iFirstUsed;
|
||||
int iOrigIndex;
|
||||
|
||||
bool operator<(const SortEntry& rhs)
|
||||
bool operator<(const SortEntry& rhs) const
|
||||
{
|
||||
return iFirstUsed < rhs.iFirstUsed;
|
||||
}
|
||||
|
Reference in New Issue
Block a user