src/ai/api/ai_cargolist.cpp
author truebrain
Mon, 07 Apr 2008 14:00:52 +0000
branchnoai
changeset 9874 4ecef0dadf01
parent 9833 89a64246458f
child 10339 ce6cd68d9eb8
permissions -rw-r--r--
(svn r12607) [NoAI] -Add: SetLastError support for AIVehicle (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);
		}
	}
}