That's true. Lack of electrolytes can cause cramping.
I had heat cramps once in the army. And that was during a 24km
route march.... dead in the middle of the night.
My calves were so badly cramped that I begged another medic to
shoot an infusion line into my arm and to flush one liter of
Hartmann's solution (saline solution) into my veins.
However, as it was 1 am and there was very little light, he
didn't dare do it.
In desperation I snipped open a 1-liter packet of Hartmann's
solution from my medical pouch and drank it all up.

i'm just not as hardy as you lads! i've a problem with the
nerves in my calves - sometimes it's blocked and can't send a
signal to my brain to tell me where to put my foot. so i can't feel
the ground in a sense...i fell in the middle of the road once but
thank god, it was only in the neighbourhood