Use proper data type size.

This commit is contained in:
Bartosz Taudul 2019-12-28 18:28:37 +01:00
parent 1d97efa059
commit ed5f534bbb

View File

@ -9459,7 +9459,7 @@ void View::DrawZoneList( const Vector<short_ptr<ZoneEvent>>& zones )
{
zonesToIterate = &sortedZones;
sortedZones.reserve_and_use( zones.size() );
memcpy( sortedZones.data(), zones.data(), zones.size() * sizeof( ZoneEvent* ) );
memcpy( sortedZones.data(), zones.data(), zones.size() * sizeof( decltype( *zones.begin() ) ) );
switch( m_findZone.tableSortBy )
{