Use memcpy

This commit is contained in:
Dedmen Miller 2019-02-07 16:10:28 +01:00
parent 59ae188a7f
commit ab0dc0da11

View File

@ -5692,8 +5692,7 @@ void View::DrawFindZone()
{ {
zonesToIterate = &sortedZones; zonesToIterate = &sortedZones;
sortedZones.reserve_and_use( v->second.zones.size() ); sortedZones.reserve_and_use( v->second.zones.size() );
std::copy(v->second.zones.begin(), v->second.zones.end(), sortedZones.begin()); memcpy(sortedZones.data(), v->second.zones.data(), sizeof(ZoneEvent*)*v->second.zones.size());
switch( m_findZone.tableSortBy ) switch( m_findZone.tableSortBy )
{ {