Files @ r11917:612c11f7ab47
Branch filter:

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

smatz
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
/* $Id$ */

/** @file ai_grouplist.cpp Implementation of AIGroupList and friends. */

#include "ai_grouplist.hpp"
#include "../../company_func.h"
#include "../../group.h"

AIGroupList::AIGroupList()
{
	Group *g;
	FOR_ALL_GROUPS(g) {
		if (g->owner == _current_company) this->AddItem(g->index);
	}
}