mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
[gamecode] Allow stack with no heap
Trying to use stack without a heap allocated would result in some very bogus stack info.
This commit is contained in:
parent
8ec66f118a
commit
ea02af57eb
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ PR_LoadProgsFile (progs_t *pr, QFile *file, int size)
|
|||
pr->pr_statements = (dstatement_t *) (base + pr->progs->statements.offset);
|
||||
|
||||
pr->pr_globals = (pr_type_t *) (base + pr->progs->globals.offset);
|
||||
pr->stack = (pr_type_t *) ((byte *) pr->zone + pr->zone_size);
|
||||
pr->stack = (pr_type_t *) (heap + pr->zone_size);
|
||||
pr->stack_bottom = pr->stack - pr->pr_globals;
|
||||
pr->globals_size = (pr_type_t *) ((byte *) pr->stack + pr->stack_size)
|
||||
- pr->pr_globals;
|
||||
|
|
Loading…
Reference in a new issue