src/depot_gui.cpp
changeset 9070 dd0121143eba
parent 9065 cb8e7bdc2782
child 9094 48004fcef409
equal deleted inserted replaced
9069:3830e57f6346 9070:dd0121143eba
   654 static void ResizeDefaultWindowSize(VehicleType type)
   654 static void ResizeDefaultWindowSize(VehicleType type)
   655 {
   655 {
   656 	uint max_width  = 0;
   656 	uint max_width  = 0;
   657 	uint max_height = 0;
   657 	uint max_height = 0;
   658 
   658 
   659 	EngineID eid;
   659 	const Engine *e;
   660 	FOR_ALL_ENGINEIDS_OF_TYPE(eid, type) {
   660 	FOR_ALL_ENGINES_OF_TYPE(e, type) {
       
   661 		EngineID eid = e->index;
   661 		uint x, y;
   662 		uint x, y;
   662 
   663 
   663 		switch (type) {
   664 		switch (type) {
   664 			default: NOT_REACHED();
   665 			default: NOT_REACHED();
   665 			case VEH_SHIP:     GetShipSpriteSize(    eid, x, y); break;
   666 			case VEH_SHIP:     GetShipSpriteSize(    eid, x, y); break;