mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 16:53:01 +05:00
Fix DisableStockVehiclesForFeature
This commit is contained in:
parent
623464d45e
commit
cdad030ae1
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ namespace SVF {
|
||||||
if ( feature == Feature::NO_FEATURE ) return;
|
if ( feature == Feature::NO_FEATURE ) return;
|
||||||
for ( auto it = specialVehFeatures.begin(); it != specialVehFeatures.end(); )
|
for ( auto it = specialVehFeatures.begin(); it != specialVehFeatures.end(); )
|
||||||
{
|
{
|
||||||
if ( std::get<int32_t>(it->second) <= highestStockCookie )
|
if ( std::get<Feature>(it->second) == feature && std::get<int32_t>(it->second) <= highestStockCookie )
|
||||||
{
|
{
|
||||||
it = specialVehFeatures.erase( it );
|
it = specialVehFeatures.erase( it );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue