Fixed a crash in firework rockets.

Fixes #816.