Along the direction of current across a resistance, the potential drops. From positive terminal of a battery to the negative terminal of a battery, potential drops and vice-versa. For loop abcdefga, gain in potential has been taken as positive and drop in potential has been taken as negative.