Update hog.cpp

Update according to vbystricky's comments