src/ai/api/ai_cargolist.cpp
author truebrain
Sat, 07 Jun 2008 21:50:12 +0000
branchnoai
changeset 10850 617526555d1b
parent 10339 ce6cd68d9eb8
child 11164 67338721eb26
permissions -rw-r--r--
(svn r13401) [NoAI] -Fix: note that Money in AIs is always represented in Pounds (requested by Finaldeath)
/* $Id$ */

/** @file ai_cargolist.cpp Implementation of AICargoList and friends. */

#include "ai_cargolist.hpp"
#include "../../openttd.h"
#include "../../cargotype.h"

AICargoList::AICargoList()
{
	for (byte i = 0; i < NUM_CARGO; i++) {
		const CargoSpec *c = ::GetCargo(i);
		if (c->IsValid()) {
			this->AddItem(i);
		}
	}
}