Fix engine obstruction cluster position typo

Obstruction cluster are found in walls. Since position of walls would never change, that erroneous code path was probably never executed, hence it never caused any observable problems. Fixing this anyway in case it would be relevant in future.
This commit is contained in:
stevenlau authored and Phosit committed 2026-09-21 14:08:46 +02:00
1 parent 9dec9c1d53
commit 06f3ea58bf
1 file changed
+1 -1
@@ -367,7 +367,7 @@ public:
m_Tag = cmpObstructionManager->AddUnitShape(GetEntityId(),
data.x, data.z, m_Clearance, (flags_t)(m_Flags | (m_Moving ? ICmpObstructionManager::FLAG_MOVING : 0)), m_ControlGroup);
else
AddClusterShapes(data.x, data.x, data.a);
AddClusterShapes(data.x, data.z, data.a);
}
else if (!data.inWorld && m_Tag.valid())
{