fix off by one in missionlib
Merge pull request #533 from thomasgubler/missionlib_fix

fix off by one in missionlib