fixed a bug in trajectory.cc which occured when too many NPCs were created (the tilewrapper for the target tile of the NPCs was not reset)