Fix writing D2 savegames

Escort_goal_index is an object number, but must occupy 4 bytes in the
save file for compatibility with older versions.