src/newgrf_config.cpp
changeset 6977 67b989528f3d
parent 6921 1771ee81a39a
child 7330 577e92774f23
equal deleted inserted replaced
6976:0bc7efb388a7 6977:67b989528f3d
   185 	CopyGRFConfigList(tail, _grfconfig_static);
   185 	CopyGRFConfigList(tail, _grfconfig_static);
   186 	RemoveDuplicatesFromGRFConfigList(*dst);
   186 	RemoveDuplicatesFromGRFConfigList(*dst);
   187 }
   187 }
   188 
   188 
   189 /** Appends an element to a list of GRFs
   189 /** Appends an element to a list of GRFs
   190  * @param dst the head of the list to add to */
   190  * @param dst the head of the list to add to
       
   191  * @param el the new tail to be */
   191 void AppendToGRFConfigList(GRFConfig **dst, GRFConfig *el)
   192 void AppendToGRFConfigList(GRFConfig **dst, GRFConfig *el)
   192 {
   193 {
   193 	GRFConfig **tail = dst;
   194 	GRFConfig **tail = dst;
   194 	while (*tail != NULL) tail = &(*tail)->next;
   195 	while (*tail != NULL) tail = &(*tail)->next;
   195 	*tail = el;
   196 	*tail = el;