(svn r22981) -Add: GroupStatistics for the ALL_GROUP.
This commit is contained in:
@@ -74,10 +74,7 @@ static int CDECL EngineNumberSorter(const EngineID *a, const EngineID *b)
|
||||
*/
|
||||
void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g)
|
||||
{
|
||||
Company *c = Company::Get(_local_company);
|
||||
uint num_engines = GetGroupNumEngines(_local_company, id_g, e);
|
||||
|
||||
if (num_engines == 0 || c->num_engines[e] == 0) {
|
||||
if (GetGroupNumEngines(_local_company, id_g, e) || GetGroupNumEngines(_local_company, ALL_GROUP, e) == 0) {
|
||||
/* We don't have any of this engine type.
|
||||
* Either we just sold the last one, we build a new one or we stopped replacing it.
|
||||
* In all cases, we need to update the left list */
|
||||
|
Reference in New Issue
Block a user