Fixed reset_buttons() so it actually sets the localbuttons pointer instead of a copy.