author | smatz |
Sat, 15 Dec 2007 16:11:29 +0000 | |
changeset 8076 | 359406608733 |
parent 8075 | acd9b1120d9d |
child 8077 | 26a93e5278a9 |
src/vehicle.cpp | file | annotate | diff | comparison | revisions |
--- 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);