It's dumb for not making the family a top priority. Gambling is always there, If you wanted to be entertained or have fun, it will never leave. But your family, if you didn't prioritize them they will feel sad and there are worst emotional situations that might happen.
I hope there are no people who give more attention to gambling than the needs of his/her family. If this kind of situation continues, that person will be addicted and it'll be hard for him to recover and it will end to broken relationships.