branch | noai |
changeset 10829 | 8a0ec0f0f928 |
parent 10455 | 22c441f5adf9 |
--- a/src/yapf/yapf_destrail.hpp Mon Jun 02 01:46:03 2008 +0000 +++ b/src/yapf/yapf_destrail.hpp Wed Jun 04 22:34:45 2008 +0000 @@ -11,7 +11,7 @@ RailTypes m_compatible_railtypes; public: - void SetDestination(Vehicle* v) + void SetDestination(const Vehicle* v) { m_compatible_railtypes = v->u.rail.compatible_railtypes; } @@ -84,7 +84,7 @@ } public: - void SetDestination(Vehicle* v) + void SetDestination(const Vehicle* v) { switch (v->current_order.GetType()) { case OT_GOTO_STATION: