changeset 8076 | 359406608733 |
parent 8072 | 7b188d7b8199 |
child 8078 | d7c60bf804d5 |
--- a/src/vehicle.cpp Sat Dec 15 13:59:38 2007 +0000 +++ b/src/vehicle.cpp Sat Dec 15 16:11:29 2007 +0000 @@ -606,6 +606,11 @@ do { Vehicle *u = v; + if (!(v->vehstatus & VS_HIDDEN)) { + /* sometimes, eg. for disaster vehicles, when company bankrupts, when removing crashed/flooded vehicles, + * it may happen that vehicle chain is deleted when visible */ + MarkAllViewportsDirty(v->left_coord, v->top_coord, v->right_coord + 1, v->bottom_coord + 1); + } v = v->Next(); delete u; } while (v != NULL);