Looks like the production broke nearly all the rules of the profession for weapons handling.
https://en.wikipedia.org/wiki/Weapons_master
In some areas the weapons master must be a licensed armourer when firearms are used as props.[2]
As of 1993, when Brandon Lee was killed by a gun believed to be loaded with blanks, the rules of the Alliance of Motion Picture and Television Producers required:[3]
- Someone certified for the weapon in use be present at all times
- Firearms must be checked before and after each take
- Firearms must be cleaned daily
- Firearms must be stored securely by the props master when not in use
- Loaded guns must never be pointed at anyone
- Protective clothing must be worn by everyone nearby when blanks are fired
- If firearms are to be fired directly at the camera, a plexiglass shield must be erected
- Only the person certified for the weapon or someone under their direct supervision may hand a weapon to an actor