Fix linked-list derp

This commit is contained in:
Jack Andersen 2016-09-08 18:23:36 -10:00
parent b6587d88fc
commit d8b141bcfa
1 changed files with 2 additions and 2 deletions

View File

@ -26,12 +26,12 @@ void CBooModel::ClearModelUniformCounters()
CBooModel::~CBooModel()
{
if (this == g_FirstModel)
g_FirstModel = nullptr;
if (m_prev)
m_prev->m_next = m_next;
if (m_next)
m_next->m_prev = m_prev;
if (this == g_FirstModel)
g_FirstModel = m_next;
}
CBooModel::CBooModel(TToken<CModel>& token, std::vector<CBooSurface>* surfaces, SShader& shader,