summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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;