Fix "Disassembling magic"

Fixes http://smf.cataclysmdda.com/index.php?topic=8562.0

The break inside the loop only leaves the inner loop, but the iterator `it` is still increased by the outer loop until it hits `end`. Only than, the other loop is left, so `it` ends up being `end` all the time.