← Back to team overview

widelands-dev team mailing list archive

Re: Widelands::OPtr

 

OK, I found that right syntax is

 destination_.get(egbase)->get_dock_position().x

2016-03-16 10:28 GMT+01:00 Tibor Bamhor <tiborb95@xxxxxxxxx>:

> I run into this compilation error:
>
>  error: 'struct Widelands::OPtr<Widelands::PortDock>' has no member named
> 'get_dock_position'
>         destination_.get_dock_position().x,
>
> I am sure that Widelands::PortDock has such member function, so how can I
> "switch" from Widelands::OPtr<Widelands::PortDock> to Widelands::PortDock?
>
> Tibor
>

Follow ups

References