Map functions changes weapons?

Converting my comment into an answer for OP:

On Xbox, this glitch was resolved in patch 0.5.3:

Bug fixes

  • Players can now use the D-Pad while in the map view without switching melee, pistol, or throwing weapons
  • Removing the marker from the map when pressing (Y) will no longer switch primary/secondary weapons