[Fix] Forgot to free ship description.
This commit is contained in:
parent
e55126d426
commit
b3c9fe74ca
@ -233,6 +233,7 @@ void ships_free(void) {
|
||||
for(i = 0; i < ships; i++) {
|
||||
// Free stored strings.
|
||||
if((ship_stack+i)->name) free(ship_stack[i].name);
|
||||
if((ship_stack+i)->description) free(ship_stack[i].description);
|
||||
if((ship_stack+i)->gui) free(ship_stack[i].gui);
|
||||
so = (ship_stack+i)->outfit;
|
||||
while(so) { // free the ship outfit.
|
||||
|
Loading…
Reference in New Issue
Block a user