diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 075f24a..cc6a1c0 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -1048,7 +1048,7 @@ void ReadDoubleRearWheels(const wchar_t* pPath) token = wcstok_s( textLine, L"=", &context ); int toList = _wtoi( token ); - if ( toList != 0 ) + if ( toList > 0 ) { bool value = _wtoi( wcstok_s( nullptr, L"=", &context ) ) != 0; doubleRearWheelsList.emplace_back( toList, value ); diff --git a/SilentPatchSA/VehicleSA.cpp b/SilentPatchSA/VehicleSA.cpp index 654b32c..90abff7 100644 --- a/SilentPatchSA/VehicleSA.cpp +++ b/SilentPatchSA/VehicleSA.cpp @@ -6,9 +6,9 @@ #include "TimerSA.h" #include "DelimStringReader.h" -std::vector vecRotorExceptions; +std::vector vecRotorExceptions; -static bool ShouldIgnoreRotor( unsigned int id ) +static bool ShouldIgnoreRotor( int32_t id ) { return std::find( vecRotorExceptions.begin(), vecRotorExceptions.end(), id ) != vecRotorExceptions.end(); } @@ -62,8 +62,8 @@ void ReadRotorFixExceptions(const wchar_t* pPath) GetPrivateProfileSectionW( L"RotorFixExceptions", reader.GetBuffer(), reader.GetSize(), pPath ); while ( const wchar_t* str = reader.GetString() ) { - unsigned int toList = _wtoi( str ); - if ( toList != 0 ) + int toList = _wtoi( str ); + if ( toList > 0 ) vecRotorExceptions.push_back( toList ); } }