(svn r15282) -Fix: it was possible to start more than MAX_COMPANIES companies
This commit is contained in:
		| @@ -424,7 +424,7 @@ void ResetCompanyLivery(Company *c) | ||||
|  */ | ||||
| Company *DoStartupNewCompany(bool is_ai) | ||||
| { | ||||
| 	if (!Company::CanAllocateItem()) return NULL; | ||||
| 	if (ActiveCompanyCount() == MAX_COMPANIES || !Company::CanAllocateItem()) return NULL; | ||||
|  | ||||
| 	/* we have to generate colour before this company is valid */ | ||||
| 	Colours colour = GenerateCompanyColour(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 glx
					glx