src/fsmport.cpp
branchNewGRF_ports
changeset 6853 b3b8bb6c0a48
child 6856 0e8e4ebf23ff
equal deleted inserted replaced
6852:acb078280f60 6853:b3b8bb6c0a48
       
     1 /* $Id$ */
       
     2 
       
     3 /** @file airport.cpp */
       
     4 
       
     5 #include "stdafx.h"
       
     6 #include "openttd.h"
       
     7 #include "fsmport.h"
       
     8 
       
     9 FSMPortClass::~FSMPortClass()
       
    10 {
       
    11 	for (uint i = 0; i < nof_elements; i++) {
       
    12 		FSMState *current = layout[i].next;
       
    13 		while (current != NULL) {
       
    14 			FSMState *next = current->next;
       
    15 			free(current);
       
    16 			current = next;
       
    17 		};
       
    18 	}
       
    19 	free(layout);
       
    20 }