house functions fixes

I was having "Vector iterator not incrementable" error all the time while leaving a house or uninviting players from it,
this commit fixes those errors.