[Fix] "none" not showing up when ship had no cargo.
This commit is contained in:
parent
e3a0ec37cf
commit
c1db3ff7ab
@ -173,7 +173,7 @@ static void board_update(void) {
|
|||||||
snprintf(str, 11,
|
snprintf(str, 11,
|
||||||
"%s\n", cred);
|
"%s\n", cred);
|
||||||
if(p->ncommodities == 0)
|
if(p->ncommodities == 0)
|
||||||
snprintf(buf, 128, "none");
|
strncat(str, "none", 10);
|
||||||
else {
|
else {
|
||||||
for(i = 0; i < p->ncommodities; i++) {
|
for(i = 0; i < p->ncommodities; i++) {
|
||||||
snprintf(buf, 32,
|
snprintf(buf, 32,
|
||||||
|
Loading…
Reference in New Issue
Block a user