From 0b509743fd75f7e7b524f1f60e15f030782fe4c6 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 12 Feb 2023 12:38:29 -0400 Subject: TObject: Correct typos in `remove_parent()` That was so cursed, how did I not see this earlier. --- include/pso/TObject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/pso/TObject.h') diff --git a/include/pso/TObject.h b/include/pso/TObject.h index e259487..797218c 100644 --- a/include/pso/TObject.h +++ b/include/pso/TObject.h @@ -145,10 +145,10 @@ private: if (m_prev == this) { m_up->m_down = NULL; } else if (m_up->m_down == this) { - m_up->m_down = m_prev; + m_up->m_down = m_next; m_prev->m_next = NULL; if (m_next != NULL) { - m_next->m_prev = m_next; + m_next->m_prev = m_prev; } } else { m_prev->m_next = m_next; -- cgit v1.2.3-13-gbd6f