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.
Before I allocate more of my money in gambling rather than for my family and then I realize that it is more important ,my family has more value than anyhing else, since I gamble I always make a savings when I won the game. So I think larger amount is will be given to the family and then atleast 40% to all others.