src/fsmport.cpp
author rubidium
Tue, 21 Aug 2007 09:02:06 +0000
branchNewGRF_ports
changeset 6853 b3b8bb6c0a48
child 6856 0e8e4ebf23ff
permissions -rw-r--r--
(svn r10956) [NewGRF_ports] -Codechange: start refactoring the airport specific code to be more generic so it can be used for non-aircraft ports too.
/* $Id$ */

/** @file airport.cpp */

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

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