mirror of
git://git.psyced.org/git/psyclpc
synced 2024-08-15 03:20:16 +00:00
pkg-psyc: fix for psyc_render
This commit is contained in:
parent
14f0ec7cde
commit
a94b8609ce
1 changed files with 1 additions and 1 deletions
|
@ -216,11 +216,11 @@ f_psyc_render(svalue_t *sp) {
|
|||
v = sp->u.vec;
|
||||
if (VEC_SIZE(v) == PACKET_BODY + 1) {
|
||||
for (i = PACKET_ROUTING; i <= PACKET_ENTITY; i++) {
|
||||
headers[i].lines = 0;
|
||||
if (v->item[i].type == T_MAPPING) {
|
||||
map = v->item[i].u.map;
|
||||
if (!MAP_SIZE(map)) continue;
|
||||
|
||||
headers[i].lines = 0;
|
||||
headers[i].modifiers = malloc(sizeof(psycModifier) * MAP_SIZE(v->item[i].u.map));
|
||||
if (!headers[i].modifiers) {
|
||||
errorf("Out of memory in psyc_render for modifier table.\n");
|
||||
|
|
Loading…
Reference in a new issue