Incorrect artifact displayed when loading a saved game

When a saved game is reloaded in vanilla Heretic, the artifact icon displayed on the status bar will appear as the artifact that was selected when the game was saved. However, the artifact whose count is displayed and which is actually selected for use will be the first artifact in the player's inventory.