[h3]Fixed undo[/h3] Undo was crashing the game because I miscounted an index, it should work in all circumstances again.