Fixed the first batch of problems.

This commit is contained in:
OBattler
2020-01-15 03:04:59 +01:00
parent 714d77dedd
commit 8749776144
10 changed files with 62 additions and 26 deletions

View File

@@ -2065,8 +2065,12 @@ pgc_parse_coords(pgc_t *dev, pgc_cl_t *cl, int count)
return 0;
}
for (n = 0; n < count; n++)
if (! pgc_param_coord(dev, &param[n])) return 0;
for (n = 0; n < count; n++) {
if (! pgc_param_coord(dev, &param[n])) {
free(param);
return 0;
}
}
/* Here is how the real PGC serializes coords:
*