Re: [patch] new goods ai using the network to p**** on goods (incomplete)
Reply #6 –
Right I've found an hour or two and I'm almost done (I hope),
But I'm getting the error
player/ai_goods_tim.cc:1314: error: no matching function for call to ‘haltestelle_t::suche_route(const ware_besch_t*&, koord*)’
player/../simhalt.h:355: note: candidates are: void haltestelle_t::suche_route(ware_t&, koord*)
when calling "welt->lookup_kartenboden(platz)->get_halt()->suche_route(freight,&target)". Haven't really used C++ much, but I'm ****uming that's because I need a ware_t object. How can I get that from "freight" (which is a ware_besch_t) ?
Thanks
(edit - switched around ware_t and ware_besch_t in my question)