src/pathfind.cpp
branchnoai
changeset 10776 07203fc29812
parent 10715 6bdf79ffb022
child 10920 e33442a2b239
--- a/src/pathfind.cpp	Thu May 29 12:52:24 2008 +0000
+++ b/src/pathfind.cpp	Thu May 29 15:56:32 2008 +0000
@@ -778,7 +778,7 @@
 	tpf->enum_proc = enum_proc;
 	tpf->tracktype = TRANSPORT_RAIL;
 	tpf->railtypes = railtypes;
-	tpf->maxlength = min(_settings.pf.opf.pf_maxlength * 3, 10000);
+	tpf->maxlength = min(_settings_game.pf.opf.pf_maxlength * 3, 10000);
 	tpf->nstack = 0;
 	tpf->new_link = tpf->links;
 	tpf->num_links_left = lengthof(tpf->links);