oops, segmentation fault

This commit is contained in:
Enno Rehling 2021-06-20 00:20:25 +02:00
parent d5d0617090
commit 1531ad9a7e
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ int read_triggers(struct gamedata *data, trigger ** tp)
tr = t_new(ttype); tr = t_new(ttype);
assert(tr->next == NULL); assert(tr->next == NULL);
if (ttype->read) { if (ttype->read) {
int i = ttype->read(*tp, data); int i = ttype->read(tr, data);
switch (i) { switch (i) {
case AT_READ_OK: case AT_READ_OK:
*tp = tr; *tp = tr;