mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
[sw] Make worldent local static
It being on the stack was a bad idea as R_RenderWorld returns before the scans are rendered and thus the entity pointer winds up pointing to abandoned stack space.
This commit is contained in:
parent
91d7a80dff
commit
ab78e9d2ff
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ R_RenderWorld (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
btofpoly_t btofpolys[MAX_BTOFPOLYS];
|
btofpoly_t btofpolys[MAX_BTOFPOLYS];
|
||||||
entity_t worldent = {};
|
static entity_t worldent = {};
|
||||||
entity_t *ent = &worldent;
|
entity_t *ent = &worldent;
|
||||||
mod_brush_t *brush = &r_refdef.worldmodel->brush;
|
mod_brush_t *brush = &r_refdef.worldmodel->brush;
|
||||||
swbspctx_t bspctx = {
|
swbspctx_t bspctx = {
|
||||||
|
|
Loading…
Reference in a new issue