Files @ r10887:cdbf4a546981
Branch filter:

Location: cpp/openttd-patchpack/source/src/ai/api/ai_railtypelist.cpp

Yexo
(svn r15222) -Fix: The squirrel stack was corrupted if an AI called any C++ function during Save().
/* $Id$ */

/** @file ai_railtypelist.cpp Implementation of AIRailTypeList and friends. */

#include "ai_railtypelist.hpp"
#include "../../rail.h"
#include "../../company_func.h"

AIRailTypeList::AIRailTypeList()
{
	for (RailType rt = RAILTYPE_BEGIN; rt != RAILTYPE_END; rt++) {
		if (::HasRailtypeAvail(_current_company, rt)) this->AddItem(rt);
	}
}