Fixed a bounds check in the quest system.