src/fsmport.cpp
author richk
Wed, 16 Apr 2008 00:07:47 +0000
branchNewGRF_ports
changeset 10200 aba3af04cdbd
parent 6856 0e8e4ebf23ff
permissions -rw-r--r--
(svn r12732) [NewGRF_ports] -Sync: with trunk r12657:12672.
/* $Id$ */

/** @file airport.cpp */

#include "stdafx.h"
#include "openttd.h"
#include "fsmport.h"

FSMPortClass::~FSMPortClass()
{
	for (uint i = 0; i < num_positions; i++) {
		FSMCommand *current = layout[i].next;
		while (current != NULL) {
			FSMCommand *next = current->next;
			free(current);
			current = next;
		};
	}
	free(layout);
}