From d8b141bcfa391f2acb135af6a4a3db85857130a6 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 8 Sep 2016 18:23:36 -1000 Subject: [PATCH] Fix linked-list derp --- Runtime/Graphics/CModelBoo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Graphics/CModelBoo.cpp b/Runtime/Graphics/CModelBoo.cpp index 5be387750..3d92314b6 100644 --- a/Runtime/Graphics/CModelBoo.cpp +++ b/Runtime/Graphics/CModelBoo.cpp @@ -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& token, std::vector* surfaces, SShader& shader,