summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-05-23 01:02:07 +0000
committerOri Bernstein <ori@eigenstate.org>2022-05-23 01:02:07 +0000
commit74d91a0021de012908cfdb35fb61a1473a376130 (patch)
tree2b3a800fa524e0feee9098c5e29b8142545497bb
parentff88594df5c5df6fb8f227ab8e5df3529ba6e72f (diff)
downloadmc-master.tar.gz
usefiles: fix ty->nmemb when loading array (thanks mural)HEADmaster
-rw-r--r--parse/use.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/use.c b/parse/use.c
index ee39830..5b01860 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -418,6 +418,7 @@ tyunpickle(FILE *fd)
case Tyarray:
rdtype(fd, &ty->sub[0]);
ty->asize = unpickle(fd);
+ ty->nmemb = 1;
break;
case Tyslice:
rdtype(fd, &ty->sub[0]);