It's possible m_vehicle is NULL, when this function is called indirectly from ::Abort. In that case it was not possible to add the passenger to the vehicle. The vehicle aura has already been removed from the target in the aforementioned function and we don't need to do anything else at this point.

10026// can't attack invisible (ignore stealth for aoe spells) also if the area being looked at is from a spell use the dynamic object created instead of the casting unit. Ignore stealth if target is player and unit in combat with same player

10053// check if this is a world trigger cast - GOs are using world triggers to cast their spells, so we need to ignore their immunity flag here, this is a temp workaround, needs removal when go cast is implemented properly