mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 02:27:42 +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:
@@ -92,8 +92,8 @@ void CParticleDatabase::UpdateParticleGenDB(float dt, const CPoseAsTransforms& p
|
||||
CParticleGenInfo& info = *it->second;
|
||||
if (info.GetIsActive()) {
|
||||
if (info.GetType() == EParticleGenType::Normal) {
|
||||
CSegId segId = charInfo.GetSegIdFromString(info.GetLocatorName());
|
||||
if (segId == 0xff) {
|
||||
const CSegId segId = charInfo.GetSegIdFromString(info.GetLocatorName());
|
||||
if (segId.IsInvalid()) {
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user