mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
Using memcpy with clearly overlapping blocks is sad.
git-svn-id: https://svn.eduke32.com/eduke32@1407 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2186154dac
commit
f46e3b44f4
1 changed files with 1 additions and 1 deletions
|
@ -4277,7 +4277,7 @@ static void polymer_addplanelight(_prplane* plane, int16_t lighti)
|
|||
i++;
|
||||
}
|
||||
|
||||
memcpy(&plane->lights[i+1], &plane->lights[i], sizeof(int16_t) * (PR_MAXLIGHTS - (i+1)));
|
||||
memmove(&plane->lights[i+1], &plane->lights[i], sizeof(int16_t) * (PR_MAXLIGHTS - (i+1)));
|
||||
|
||||
plane->lights[i] = lighti;
|
||||
plane->lightcount++;
|
||||
|
|
Loading…
Reference in a new issue