diff options
author | rubidium <rubidium@openttd.org> | 2009-07-21 11:20:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-21 11:20:34 +0000 |
commit | ed5ced71c852387aec030acc19ad096e55bcbd82 (patch) | |
tree | 087c8bed10e5e62eeed8052eaf781f1ec60c544c /src/saveload/afterload.cpp | |
parent | 43eda3dfbf45a8f5060aaca3da9b8cad59a1aad8 (diff) | |
download | openttd-ed5ced71c852387aec030acc19ad096e55bcbd82.tar.xz |
(svn r16897) -Codechange: use the 'generic' station spec to station allocation for waypoints too
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 5831479cd..35337866d 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -997,7 +997,7 @@ bool AfterLoadGame() FOR_ALL_WAYPOINTS(wp) { if (wp->delete_ctr == 0) { if (HasBit(_m[wp->xy].m3, 4)) { - wp->AssignStationSpec(_m[wp->xy].m4 + 1); + AllocateSpecToStation(GetCustomStationSpec(STAT_CLASS_WAYP, _m[wp->xy].m4 + 1), wp, true); } /* Move ground type bits from m2 to m4. */ |