widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #10506
Re: [Merge] lp:~widelands-dev/widelands/ai-post-b19-2 into lp:widelands
That's a change I made because it's more efficient than an upcast (I recenty learned that dynamic_cast is expensive). This of course assumes that there is an immovable on the field.
So, either test if the immovable is nullptr first, or change back to upcast.
--
https://code.launchpad.net/~widelands-dev/widelands/ai-post-b19-2/+merge/325796
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/ai-post-b19-2 into lp:widelands.
References