When the vial was crushed , the acid ignited the perchlorate - sugar mix .
The resulting flame ignited the gunpowder charge .
When the vial was crushed , the acid ignited the perchlorate - sugar mix , and the resulting flame ignited the gunpowder charge .