diff options
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index 2b81393cb..ed7f2201b 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -879,6 +879,10 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e) vl->resort_timer = DAY_TICKS * PERIODIC_RESORT_DAYS; break; + case WE_DESTROY: + free(vl->sort_list); + break; + case WE_TICK: /* resort the list every 20 seconds orso (10 days) */ if (--vl->resort_timer == 0) { DEBUG(misc, 1) ("Periodic resort road vehicles list player %d station %d", |