mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-27 04:21:42 +00:00
stupid me didn't account for overlapping buffers
This commit is contained in:
parent
68051b907b
commit
52759ff981
1 changed files with 2 additions and 2 deletions
|
|
@ -275,7 +275,7 @@ void gfx_copy(Gfx *dest, Gfx *src, u32 length) {
|
|||
return;
|
||||
}
|
||||
|
||||
memcpy(dest, src, length * sizeof(Gfx));
|
||||
memmove(dest, src, length * sizeof(Gfx));
|
||||
}
|
||||
|
||||
Gfx *gfx_create(const char *name, u32 length) {
|
||||
|
|
@ -377,7 +377,7 @@ void vtx_copy(Vtx *dest, Vtx *src, u32 count) {
|
|||
return;
|
||||
}
|
||||
|
||||
memcpy(dest, src, count * sizeof(Vtx));
|
||||
memmove(dest, src, count * sizeof(Vtx));
|
||||
}
|
||||
|
||||
Vtx *vtx_create(const char *name, u32 count) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue