src/ai/api/ai_cargolist.cpp
author rubidium
Tue, 08 Apr 2008 07:24:23 +0000
branchnoai
changeset 10094 e737405b06dd
parent 9833 89a64246458f
child 10339 ce6cd68d9eb8
permissions -rw-r--r--
(svn r12625) [NoAI] -Add: support for GetLastError in AIRoad. Patch by Morloth.
/* $Id$ */

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

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

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