[boxdemo PoC] properly recover from error #1348

This commit is contained in:
nick black 2021-10-19 13:49:45 -04:00
parent a12d7a8d15
commit 61b149b357
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -146,8 +146,8 @@ get_ships(struct notcurses* nc, struct ship* ships, unsigned shipcount){
while(s--){
ncplane_destroy(ships[s].n);
ncvisual_destroy(wmv);
return -1;
}
return -1;
}
ncplane_move_below(ships[s].n, notcurses_stdplane(nc));
if((ships[s].vely = rand() % 6 - 3) == 0){