diff --git a/SilentPatchSA/FLACDecoderSA.cpp b/SilentPatchSA/FLACDecoderSA.cpp index 787d443..9599347 100644 --- a/SilentPatchSA/FLACDecoderSA.cpp +++ b/SilentPatchSA/FLACDecoderSA.cpp @@ -1,7 +1,6 @@ #include "StdAfxSA.h" #include "FLACDecoderSA.h" #include -#include FLAC__StreamDecoderReadStatus CAEFLACDecoder::read_cb(const FLAC__StreamDecoder* decoder, FLAC__byte buffer[], size_t* bytes, void* client_data) { @@ -44,7 +43,7 @@ FLAC__StreamDecoderWriteStatus CAEFLACDecoder::write_cb(const FLAC__StreamDecode pClientData->m_maxBlockSize = pClientData->m_curBlockSize; } - auto it = std::copy_n( buffer[0], pClientData->m_curBlockSize, stdext::make_checked_array_iterator(pClientData->m_buffer, pClientData->m_curBlockSize * processedChannels) ); + auto it = std::copy_n( buffer[0], pClientData->m_curBlockSize, pClientData->m_buffer ); if ( processedChannels > 1 ) { std::copy_n( buffer[1], pClientData->m_curBlockSize, it ); diff --git a/SilentPatchSA/ModelInfoSA.cpp b/SilentPatchSA/ModelInfoSA.cpp index e071438..8e99d25 100644 --- a/SilentPatchSA/ModelInfoSA.cpp +++ b/SilentPatchSA/ModelInfoSA.cpp @@ -1,8 +1,6 @@ #include "StdAfxSA.h" #include "ModelInfoSA.h" -#include - static void* BaseModelInfoShutdown = AddressByVersion(0x4C4D50, 0x4C4DD0, 0x4CF590); WRAPPER void CBaseModelInfo::Shutdown() { VARJMP(BaseModelInfoShutdown); } @@ -80,7 +78,7 @@ void CVehicleModelInfo::FindEditableMaterialList() if ( m_numDirtMaterials > IN_PLACE_BUFFER_DIRT_SIZE ) { m_dirtMaterials = new RpMaterial* [m_numDirtMaterials]; - std::copy( editableMaterials.begin(), editableMaterials.end(), stdext::make_checked_array_iterator(m_dirtMaterials, m_numDirtMaterials) ); + std::copy( editableMaterials.begin(), editableMaterials.end(), m_dirtMaterials ); } else { diff --git a/SilentPatchSA/PoolsSA.h b/SilentPatchSA/PoolsSA.h index ac45c4d..55866ff 100644 --- a/SilentPatchSA/PoolsSA.h +++ b/SilentPatchSA/PoolsSA.h @@ -2,7 +2,6 @@ #define __POOLS #include -#include template class CPool