This is mystery to me, see two lines: //ref_cast<ConstructionSite const, Building const>(b).building().name().c_str()); dynamic_cast<const ConstructionSite&>((b).building().name().c_str()));
commented out is before, the second one is what I want to use. Before it used to compile, now it complains: defaultai.cc:3766:48: error: 'const class Widelands::Building' has no member named 'building' Can you see any problem here? -- https://code.launchpad.net/~widelands-dev/widelands/seafaring-ai/+merge/242271 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/seafaring-ai into lp:widelands. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp