Update featureSet.cpp

This commit is contained in:
marauder2k7 2025-01-28 21:09:57 +00:00
parent 8c7ddb7cf1
commit ac909e26bd

View file

@ -147,6 +147,8 @@ void FeatureSet::setFeature( const FeatureType &type, bool set, S32 index )
} }
void FeatureSet::addFeature( const FeatureType &type, S32 index, void* argStruct ) void FeatureSet::addFeature( const FeatureType &type, S32 index, void* argStruct )
{
if (!argStruct)
{ {
for (U32 i = 0; i < mFeatures.size(); i++) for (U32 i = 0; i < mFeatures.size(); i++)
{ {
@ -155,6 +157,7 @@ void FeatureSet::addFeature( const FeatureType &type, S32 index, void* argStruct
info.index == index) info.index == index)
return; return;
} }
}
FeatureInfo info; FeatureInfo info;
info.type = &type; info.type = &type;