From cdad030ae19b6332285e85d63ff609fefe8fd787 Mon Sep 17 00:00:00 2001 From: Silent Date: Mon, 28 May 2018 13:12:07 +0200 Subject: [PATCH] Fix DisableStockVehiclesForFeature --- SilentPatchSA/VehicleSA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SilentPatchSA/VehicleSA.cpp b/SilentPatchSA/VehicleSA.cpp index dfe2ab8..1cc8ed8 100644 --- a/SilentPatchSA/VehicleSA.cpp +++ b/SilentPatchSA/VehicleSA.cpp @@ -120,7 +120,7 @@ namespace SVF { if ( feature == Feature::NO_FEATURE ) return; for ( auto it = specialVehFeatures.begin(); it != specialVehFeatures.end(); ) { - if ( std::get(it->second) <= highestStockCookie ) + if ( std::get(it->second) == feature && std::get(it->second) <= highestStockCookie ) { it = specialVehFeatures.erase( it ); }