Fix DisableStockVehiclesForFeature

This commit is contained in:
Silent 2018-05-28 13:12:07 +02:00
parent 623464d45e
commit cdad030ae1
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -120,7 +120,7 @@ namespace SVF {
if ( feature == Feature::NO_FEATURE ) return;
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 );
}