mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[gamecode] Try to set field def size
This fixes the edicts command not printing anything useful.
This commit is contained in:
parent
78220ff420
commit
65f78b43ac
1 changed files with 2 additions and 0 deletions
|
@ -1800,6 +1800,8 @@ ED_Print (progs_t *pr, edict_t *ed, const char *fieldname)
|
|||
if (l >= 2 && name[l - 2] == '_' && strchr ("xyz", name[l - 1]))
|
||||
continue; // skip _x, _y, _z vars
|
||||
|
||||
qfot_type_t dummy_type = { };
|
||||
get_def_type (pr, d, &dummy_type);
|
||||
for (j = 0; j < d->size; j++) {
|
||||
if (E_INT (ed, d->ofs + j)) {
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue