src/fsmport.cpp
author richk
Tue, 17 Jun 2008 10:32:49 +0000
branchNewGRF_ports
changeset 10991 d8811e327d12
parent 6856 0e8e4ebf23ff
permissions -rw-r--r--
(svn r13545) [NewGRF_ports] -Sync: with trunk r13281:13411.
/* $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);
}