mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
make the builtins an array of pointers so the hash table doesn't get royally
screwed up
This commit is contained in:
parent
6ab3329b94
commit
6af9a5d8e6
4 changed files with 19 additions and 20 deletions
|
@ -143,6 +143,7 @@ typedef void (*builtin_proc) (progs_t *pr);
|
|||
typedef struct {
|
||||
const char *name;
|
||||
builtin_proc proc;
|
||||
int first_statement;
|
||||
} builtin_t;
|
||||
|
||||
ddef_t *PR_FindGlobal (progs_t *pr, const char *name);
|
||||
|
@ -277,7 +278,7 @@ struct progs_s {
|
|||
int (*prune_edict)(progs_t *pr, edict_t *ent);
|
||||
void (*free_edict)(progs_t *pr, edict_t *ent);
|
||||
|
||||
builtin_t *builtins;
|
||||
builtin_t **builtins;
|
||||
int numbuiltins;
|
||||
|
||||
// debug info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue