elecyb/TrinityCore — comment on commit fc4b03371594b15cf810821ee667f468d00c8b22
File: src/server/game/Entities/Vehicle/Vehicle.cpp line 361
By devilcoredev:

ASSERT(_me->SetCharmedBy(unit, CHARM_TYPE_VEHICLE));
Is the best way :)