mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-03-22 01:41:01 +00:00
Add missing address operator in cm_polylib.c
Also avoid nullptr dereference.
This commit is contained in:
parent
3a702ded65
commit
bf4c7a0341
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ winding_t *CopyWinding (winding_t *w)
|
|||
winding_t *c;
|
||||
|
||||
c = AllocWinding (w->numpoints);
|
||||
size = (intptr_t) ((winding_t *)0)->p[w->numpoints];
|
||||
size = (intptr_t)&(w->p[w->numpoints]) - (intptr_t)w;
|
||||
Com_Memcpy (c, w, size);
|
||||
return c;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue