forked from github/server
oops, segmentation fault
This commit is contained in:
parent
d5d0617090
commit
1531ad9a7e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue