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.
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.