summaryrefslogtreecommitdiff
path: root/spritecache.c
diff options
context:
space:
mode:
Diffstat (limited to 'spritecache.c')
-rw-r--r--spritecache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spritecache.c b/spritecache.c
index 40e544b46..4c7aeff71 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -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.