summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-12 12:38:29 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-12 12:39:00 -0400
commit0b509743fd75f7e7b524f1f60e15f030782fe4c6 (patch)
treed4aa82405f8cd876e1a2367e27b2345801a87836 /include
parent6b0b68e01a29f8c5c3a709ad57219e687b75d248 (diff)
TObject: Correct typos in `remove_parent()`
That was so cursed, how did I not see this earlier.
Diffstat (limited to 'include')
-rw-r--r--include/pso/TObject.h4
1 files changed, 2 insertions, 2 deletions
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;