mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Update featureSet.cpp
This commit is contained in:
parent
8c7ddb7cf1
commit
ac909e26bd
1 changed files with 8 additions and 5 deletions
|
|
@ -148,12 +148,15 @@ 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 )
|
||||||
{
|
{
|
||||||
for ( U32 i=0; i < mFeatures.size(); i++ )
|
if (!argStruct)
|
||||||
{
|
{
|
||||||
const FeatureInfo &info = mFeatures[i];
|
for (U32 i = 0; i < mFeatures.size(); i++)
|
||||||
if ( info.type == &type &&
|
{
|
||||||
info.index == index )
|
const FeatureInfo& info = mFeatures[i];
|
||||||
return;
|
if (info.type == &type &&
|
||||||
|
info.index == index)
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FeatureInfo info;
|
FeatureInfo info;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue