mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-26 01:31:20 +00:00
Cursor::DeleteMatch check and clang fix
This commit is contained in:
parent
6c914e0700
commit
ecc1d6e5f9
@ -67,8 +67,8 @@ class MxHashTable : protected MxCollection<T> {
|
|||||||
// on the value of m_resizeOption. Hard to say whether this is how the devs
|
// on the value of m_resizeOption. Hard to say whether this is how the devs
|
||||||
// did it, but a simple cast in either direction doesn't match.
|
// did it, but a simple cast in either direction doesn't match.
|
||||||
union {
|
union {
|
||||||
MxU32 m_increaseAmount; // +0x20
|
MxU32 m_increaseAmount; // +0x20
|
||||||
double m_increaseFactor; // +0x20
|
double m_increaseFactor; // +0x20
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -122,6 +122,8 @@ void MxHashTableCursor<T>::DeleteMatch()
|
|||||||
{
|
{
|
||||||
// Cut the matching node out of the linked list
|
// Cut the matching node out of the linked list
|
||||||
// by updating pointer references.
|
// by updating pointer references.
|
||||||
|
if (m_match == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
if (m_match->m_prev) {
|
if (m_match->m_prev) {
|
||||||
m_match->m_prev->m_next = m_match->m_next;
|
m_match->m_prev->m_next = m_match->m_next;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user