mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-17 10:47:01 +00:00
CSegId: Add member functions for querying validity
Allows querying validity of segment IDs without hardcoding the magic value that signifies an invalid ID.
This commit is contained in:
@@ -90,7 +90,7 @@ void CFlaahgraTentacle::AddSphereCollisionList(const SSphereJointInfo* sphereJoi
|
||||
const SSphereJointInfo& sphereJoint = sphereJoints[i];
|
||||
const CSegId segId = animData->GetLocatorSegId(sphereJoint.name);
|
||||
|
||||
if (segId == 0xFF) {
|
||||
if (segId.IsInvalid()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user