Files @ r10887:cdbf4a546981
Branch filter:

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

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

/** @file ai_townlist.cpp Implementation of AITownList and friends. */

#include "ai_townlist.hpp"
#include "../../openttd.h"
#include "../../town.h"

AITownList::AITownList()
{
	Town *t;
	FOR_ALL_TOWNS(t) {
		this->AddItem(t->index);
	}
}