pkg-psyc: fix for psyc_render

This commit is contained in:
Gabor Adam Toth 2011-05-23 18:30:47 +02:00
parent 14f0ec7cde
commit a94b8609ce
1 changed files with 1 additions and 1 deletions

View File

@ -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");