From 417809f78e3b32e2d109bdb9a4582dcf2ee084fe Mon Sep 17 00:00:00 2001
From: MascaraSnake <jonassauer27@gmail.com>
Date: Fri, 31 Dec 2021 00:05:47 +0100
Subject: [PATCH] Fix typo in P_MobjTouchingSectorSpecial

---
 src/p_spec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/p_spec.c b/src/p_spec.c
index a1eb4183c..13facd78e 100644
--- a/src/p_spec.c
+++ b/src/p_spec.c
@@ -4052,7 +4052,7 @@ sector_t *P_MobjTouchingSectorSpecial(mobj_t *mo, INT32 section, INT32 number)
 		if (!(node->m_sector->flags & SF_TRIGGERSPECIAL_TOUCH))
 			continue;
 
-		if (GETSECSPECIAL(mo->subsector->sector->special, section) == number)
+		if (GETSECSPECIAL(node->m_sector->special, section) == number)
 			return node->m_sector;
 	}
 
-- 
GitLab