Code review comment for lp:~widelands-dev/widelands/ai-post-b19-2

Revision history for this message
GunChleoc (gunchleoc) wrote :

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.

« Back to merge proposal