3 | | Here is how it can be fixed: |
4 | | |
5 | | {{{#!cpp |
6 | | --- a/engines/xeen/dialogs/dialogs_items.cpp |
7 | | +++ b/engines/xeen/dialogs/dialogs_items.cpp |
8 | | @@ -59,6 +59,7 @@ Character *ItemsDialog::execute(Character *c, ItemsMode mode) { |
9 | | _oldCharacter = c; |
10 | | c = &_itemsCharacter; |
11 | | party._blacksmithWares.blackData2CharData(_itemsCharacter); |
12 | | + _itemsCharacter._class = _oldCharacter->_class; |
13 | | setEquipmentIcons(); |
14 | | } else if (mode == ITEMMODE_ENCHANT) { |
15 | | _oldCharacter = c; |
16 | | @@ -312,6 +313,7 @@ Character *ItemsDialog::execute(Character *c, ItemsMode mode) { |
17 | | _oldCharacter = newChar; |
18 | | startingChar = newChar; |
19 | | c = &_itemsCharacter; |
20 | | + _itemsCharacter._class = _oldCharacter->_class; |
21 | | } else if (mode == ITEMMODE_SELL || mode == ITEMMODE_REPAIR || mode == ITEMMODE_IDENTIFY) { |
22 | | _oldCharacter = newChar; |
23 | | startingChar = newChar; |
24 | | }}} |
25 | | |
26 | | |
27 | | The patch can be applied to 2-7. |
28 | | master is not working for me right now because of https://bugs.scummvm.org/ticket/14426 |
| 4 | I fixed it. Pull request for master: https://github.com/scummvm/scummvm/pull/4994 |