closer to stock only better logic

This commit is contained in:
DarthArgus
2016-12-13 07:25:41 +00:00
parent d3ed5359ca
commit 145bdeb83c
2 changed files with 8 additions and 7 deletions

View File

@@ -110,20 +110,22 @@ inline bool ObjvarBuffer::IndexKey::operator<(const IndexKey &rhs) const
{
if (m_objectId < rhs.m_objectId)
return true;
else if (m_objectId == rhs.m_objectId)
if (m_objectId == rhs.m_objectId)
return (m_nameId < rhs.m_nameId);
else
return false;
return false;
}
inline bool ObjvarBuffer::IndexKey::operator>(const IndexKey &rhs) const
{
if (m_objectId > rhs.m_objectId)
return true;
else if (m_objectId == rhs.m_objectId)
if (m_objectId == rhs.m_objectId)
return (m_nameId > rhs.m_nameId);
else
return false;
return false;
}
// ======================================================================

View File

@@ -140,7 +140,6 @@ SwgSnapshot::SwgSnapshot(DB::ModeQuery::Mode mode, bool useGoldDatabase) :
// ----------------------------------------------------------------------
SwgSnapshot::~SwgSnapshot(){
m_bufferList.clear();
}
// ----------------------------------------------------------------------