mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:19:55 +00:00
Better name
This commit is contained in:
parent
c3944d3e1a
commit
6acd900577
1 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ struct ciLessBoost : std::binary_function<std::string, std::string, bool>
|
|||
}
|
||||
};
|
||||
|
||||
struct mrComparer
|
||||
struct pathComparer
|
||||
{
|
||||
private:
|
||||
int m_start, m_size;
|
||||
|
@ -63,7 +63,7 @@ private:
|
|||
}
|
||||
|
||||
public:
|
||||
mrComparer(int start, int size) : m_start(start), m_size(size) { }
|
||||
pathComparer(int start, int size) : m_start(start), m_size(size) { }
|
||||
|
||||
bool operator() (const std::string& first, const std::string& other)
|
||||
{
|
||||
|
@ -115,7 +115,7 @@ class DirArchive: public Ogre::FileSystemArchive
|
|||
current = found->second;
|
||||
}
|
||||
|
||||
mrComparer comp(delimiter, copy.size() - delimiter-1);
|
||||
pathComparer comp(delimiter, copy.size() - delimiter-1);
|
||||
return std::binary_search(current.begin(), current.end(), copy, comp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue