From cfb1f1e074b415b3a8fa713db4d5e41c241b9da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Wed, 23 Mar 2022 00:58:09 +0100 Subject: ksys/phys: Add more StaticCompound functions, part 2 --- src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp') diff --git a/src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp b/src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp index b18e0201..59abc724 100644 --- a/src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp +++ b/src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp @@ -93,7 +93,7 @@ bool StaticCompound::disableCollision(int actor_idx, bool x) { const auto type = static_cast(info->m_BodyLayerType); const auto instance_id = info->m_InstanceId; - mFieldBodyGroups[group].disableCollision(type, instance_id, x); + mFieldBodyGroups[group].setInstanceEnabled(type, instance_id, x); } return true; } -- cgit v1.2.3