(svn r13086) -Fix: do not crash badly after loading a newgrf with engines in-game that often

This commit is contained in:
smatz
2008-05-14 15:29:48 +00:00
parent c09737a3e1
commit e4dee736c5
2 changed files with 4 additions and 0 deletions

View File

@@ -141,6 +141,9 @@ void EngList_SortPartial(EngineList *el, EngList_SortTypeFunction compare, uint
qsort(&((*el)[begin]), num_items, sizeof(EngineID), compare);
}
/** Sets cached values in Player::num_vehicles and Group::num_vehicles
*/
void SetCachedEngineCounts()
{
uint engines = GetEnginePoolSize();