forked from mirror/OpenTTD
(svn r624) Merge r377 to trunk:
Remove the memmove special case for MSVC According to the MSDN it was just plain wrong and memmove was directly used in some places anyway
This commit is contained in:
@@ -524,7 +524,7 @@ static void CompactSpriteCache()
|
||||
_sprite_ptr[i] -= size;
|
||||
|
||||
// Move the memory
|
||||
memcpy_overlapping(s+S_HDRSIZE, s+S_HDRSIZE+size, sizeb - S_HDRSIZE );
|
||||
memmove(s + S_HDRSIZE, s + S_HDRSIZE + size, sizeb - S_HDRSIZE);
|
||||
|
||||
// What we just did had the effect of swapping the allocated block with the free block, so we need to update
|
||||
// the block pointers. First update the allocated one. It is in use.
|
||||
|
Reference in New Issue
Block a user