src/newgrf_config.cpp
branchcpp_gui
changeset 6308 646711c5feaa
parent 6307 f40e88cff863
equal deleted inserted replaced
6307:f40e88cff863 6308:646711c5feaa
   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;