src/depot_gui.cpp
changeset 10382 d1d4452acbfc
parent 10376 a1207076a5c7
child 10411 efe3b7a2746f
equal deleted inserted replaced
10380:b36a754e4c21 10382:d1d4452acbfc
   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;